Skip to content

Commit

Permalink
refactor: remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
crystall-bitquill committed May 1, 2024
1 parent feb0c64 commit ce50f56
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions common/lib/plugin_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,19 +207,6 @@ export class PluginService implements ErrorHandler, HostListProviderService {
this._currentClient.config = Object.fromEntries(props.entries());
}

replaceTargetClient(props: Map<string, any>): void {
const createClientFunc = this.getCurrentClient().getCreateClientFunc();
if (createClientFunc) {
if (this.getCurrentClient().targetClient) {
this.getCurrentClient().end();
}
const newTargetClient = createClientFunc(Object.fromEntries(props));
this.getCurrentClient().targetClient = newTargetClient;
return;
}
throw new AwsWrapperError("AwsClient is missing create target client function."); // This should not be reached
}

createTargetClient(props: Map<string, any>): any {
const createClientFunc = this.getCurrentClient().getCreateClientFunc();
const copy = WrapperProperties.removeWrapperProperties(Object.fromEntries(props.entries()));
Expand Down

0 comments on commit ce50f56

Please sign in to comment.