Skip to content

Commit e57d5db

Browse files
JeanMechethePunderWoman
authored andcommitted
refactor(core): remove unused r2 debug code (angular#49292)
`_createNgProbeR2` isn't called anymore, `ɵgetDebugNodeR2` isn't needed anymore. We can now remove it from the export in Core. PR Close angular#49292
1 parent e7948d3 commit e57d5db

File tree

3 files changed

+0
-44
lines changed

3 files changed

+0
-44
lines changed

packages/core/src/core_private_export.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export {APP_ID_RANDOM_PROVIDER as ɵAPP_ID_RANDOM_PROVIDER} from './application_
1111
export {defaultIterableDiffers as ɵdefaultIterableDiffers, defaultKeyValueDiffers as ɵdefaultKeyValueDiffers} from './change_detection/change_detection';
1212
export {ChangeDetectorStatus as ɵChangeDetectorStatus, isDefaultChangeDetectionStrategy as ɵisDefaultChangeDetectionStrategy} from './change_detection/constants';
1313
export {Console as ɵConsole} from './console';
14-
export {getDebugNodeR2 as ɵgetDebugNodeR2} from './debug/debug_node';
1514
export {convertToBitFlags as ɵconvertToBitFlags, setCurrentInjector as ɵsetCurrentInjector} from './di/injector_compatibility';
1615
export {getInjectableDef as ɵgetInjectableDef, ɵɵInjectableDeclaration, ɵɵInjectorDef} from './di/interface/defs';
1716
export {InternalEnvironmentProviders as ɵInternalEnvironmentProviders, isEnvironmentProviders as ɵisEnvironmentProviders} from './di/interface/provider';

packages/core/src/debug/debug_node.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -661,11 +661,6 @@ export function getDebugNode(nativeNode: any): DebugNode|null {
661661
return null;
662662
}
663663

664-
// TODO: cleanup all references to this function and remove it.
665-
export function getDebugNodeR2(_nativeNode: any): DebugNode|null {
666-
return null;
667-
}
668-
669664
export function getAllDebugNodes(): DebugNode[] {
670665
return Array.from(_nativeNodeToDebugNode.values());
671666
}

packages/platform-browser/src/dom/debug/ng_probe.ts

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)