mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(core): remove duplicated noop function (#39761)
The codebase currently contains several `noop` functions,
and they can end up in the bundle of an application.
A recent commit 6fbe21941d tipped us off
as it introduced several `noop` occurrences in the golden symbol files.
After investigating with @petebacondarwin,
we decided to remove the duplicated functions.
This probably shaves only a few bytes,
but this commit removes the duplicated functions,
by always using the one in `core/src/utils/noop`.
PR Close #39761
This commit is contained in:
committed by
Andrew Kushnir
parent
935cf433ed
commit
066126ae2f
@@ -142,8 +142,6 @@ export function getQueryPredicate(
|
||||
}
|
||||
}
|
||||
|
||||
export function noop() {}
|
||||
|
||||
export class DefinitionMap {
|
||||
values: {key: string, quoted: boolean, value: o.Expression}[] = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user