Skip to content

Commit 4941725

Browse files
committed
refactor: remove unused methods and locals
1 parent d3709e8 commit 4941725

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

packages/angular/cli/src/command-builder/schematics-command-module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ export abstract class SchematicsCommandModule
383383
}
384384

385385
private getProjectName(): string | undefined {
386-
const { workspace, logger } = this.context;
386+
const { workspace } = this.context;
387387
if (!workspace) {
388388
return undefined;
389389
}

packages/angular_devkit/build_angular/src/utils/process-bundle.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -365,16 +365,6 @@ function unwrapTemplateLiteral(
365365
return [messageParts, expressions];
366366
}
367367

368-
function unwrapLocalizeCall(
369-
path: NodePath<types.CallExpression>,
370-
utils: LocalizeUtilityModule,
371-
): [TemplateStringsArray, types.Expression[]] {
372-
const [messageParts] = utils.unwrapMessagePartsFromLocalizeCall(path);
373-
const [expressions] = utils.unwrapSubstitutionsFromLocalizeCall(path);
374-
375-
return [messageParts, expressions];
376-
}
377-
378368
async function loadLocaleData(path: string, optimize: boolean): Promise<string> {
379369
// The path is validated during option processing before the build starts
380370
const content = await fs.readFile(path, 'utf8');

packages/ngtools/webpack/src/ivy/plugin.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class AngularWebpackPlugin {
125125
}
126126

127127
apply(compiler: Compiler): void {
128-
const { NormalModuleReplacementPlugin, WebpackError, util } = compiler.webpack;
128+
const { NormalModuleReplacementPlugin, util } = compiler.webpack;
129129
this.webpackCreateHash = util.createHash;
130130

131131
// Setup file replacements with webpack
@@ -648,7 +648,11 @@ export class AngularWebpackPlugin {
648648
];
649649
diagnosticsReporter(diagnostics);
650650

651-
const transformers = createJitTransformers(builder, this.compilerCli, this.pluginOptions);
651+
const transformers = createJitTransformers(
652+
builder,
653+
this.compilerCliTooling,
654+
this.pluginOptions,
655+
);
652656

653657
return {
654658
fileEmitter: this.createFileEmitter(builder, transformers, () => []),

packages/ngtools/webpack/src/transformers/find_image_domains.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import * as ts from 'typescript';
9+
import ts from 'typescript';
1010

11-
const TARGET_TEXT = '@NgModule';
1211
const BUILTIN_LOADERS = new Set([
1312
'provideCloudflareLoader',
1413
'provideCloudinaryLoader',

0 commit comments

Comments
 (0)