Skip to content

Commit

Permalink
Removed obsolete method
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Stolojan <petre.stolojan@arm.com>
  • Loading branch information
Bogdan Stolojan committed Jan 21, 2019
1 parent f5c9dc5 commit 96e4408
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ export class BackendGenerator extends AbstractGenerator {
const backendModules = this.pck.targetBackendModules;
await this.write(this.pck.backend('server.js'), this.compileServer(backendModules));
await this.write(this.pck.backend('main.js'), this.compileMain(backendModules));

if (this.pck.targetElectronMasterModules.size > 0) {
if (this.pck.backendElectronMasterModules.size > 0) {
await this.write(
this.pck.backend('electron-master.js'),
this.compileElectronMaster(this.pck.targetElectronMasterModules)
this.compileElectronMaster(this.pck.backendElectronMasterModules)
);
}
}
Expand Down
6 changes: 1 addition & 5 deletions dev-packages/application-package/src/application-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class ApplicationPackage {
if (!this._backendElectronMasterModules) {
this._backendElectronMasterModules = this.computeModules('backendMasterElectron');
}
return this._backendElectronMasterModules;
return this.ifElectron(this._backendElectronMasterModules, new Map<string, string>());
}

protected computeModules<P extends keyof Extension, S extends keyof Extension = P>(primary: P, secondary?: S): Map<string, string> {
Expand Down Expand Up @@ -228,10 +228,6 @@ export class ApplicationPackage {
return this.ifBrowser(this.backendModules, this.backendElectronModules);
}

get targetElectronMasterModules(): Map<string, string> {
return this.ifElectron(this.backendElectronMasterModules, new Map<string, string>());
}

get targetFrontendModules(): Map<string, string> {
return this.ifBrowser(this.frontendModules, this.frontendElectronModules);
}
Expand Down

0 comments on commit 96e4408

Please sign in to comment.