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:
cexbrayat
2020-11-19 15:19:08 +01:00
committed by Andrew Kushnir
parent 935cf433ed
commit 066126ae2f
5 changed files with 2 additions and 10 deletions
@@ -142,8 +142,6 @@ export function getQueryPredicate(
}
}
export function noop() {}
export class DefinitionMap {
values: {key: string, quoted: boolean, value: o.Expression}[] = [];