Skip to content

Commit

Permalink
Remove redundant code and fix import statement in PacWrapper.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
amitjoshi committed Apr 19, 2024
1 parent c34c060 commit e3ea4e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
9 changes: 0 additions & 9 deletions src/client/pac/PacTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,4 @@ export type WebsiteListing = {

export type PacOrgWhoOutput = PacOutputWithResult<ActiveOrgOutput>;

export type WebsiteListOutput = PacOutput & {
Results: WebsiteListing[];
}

export type WebsiteListing = {
Index: number;
WebsiteId: string;
WebsiteName: string;
}

6 changes: 1 addition & 5 deletions src/client/pac/PacWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as fs from "fs-extra";
import { ChildProcessWithoutNullStreams, spawn } from "child_process";
import { BlockingQueue } from "../../common/utilities/BlockingQueue";
import { ITelemetry } from "../telemetry/ITelemetry";
import { PacOutput, PacAdminListOutput, PacAuthListOutput, PacSolutionListOutput, PacOrgListOutput, PacOrgWhoOutput, WebsiteListOutput, WebsiteListOutput } from "./PacTypes";
import { PacOutput, PacAdminListOutput, PacAuthListOutput, PacSolutionListOutput, PacOrgListOutput, PacOrgWhoOutput, WebsiteListOutput } from "./PacTypes";
import { v4 } from "uuid";
import { oneDSLoggerWrapper } from "../../common/OneDSLoggerTelemetry/oneDSLoggerWrapper";

Expand Down Expand Up @@ -184,10 +184,6 @@ export class PacWrapper {
return this.executeCommandAndParseResults<WebsiteListOutput>(new PacArguments("paportal", "list"));
}

public async websiteList(): Promise<WebsiteListOutput> {
return this.executeCommandAndParseResults<WebsiteListOutput>(new PacArguments("paportal", "list"));
}

public exit() : void {
this.pacInterop.exit();
}
Expand Down

0 comments on commit e3ea4e0

Please sign in to comment.