mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
refactor(router): remove unused code (#59704)
This code is never used. PR Close #59704
This commit is contained in:
parent
3373b4f82a
commit
acdde4aa35
1 changed files with 1 additions and 24 deletions
|
|
@ -6,42 +6,19 @@
|
|||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
|
||||
import {Location} from '@angular/common';
|
||||
import {provideLocationMocks} from '@angular/common/testing';
|
||||
import {Compiler, inject, Injector, ModuleWithProviders, NgModule} from '@angular/core';
|
||||
import {ModuleWithProviders, NgModule} from '@angular/core';
|
||||
import {
|
||||
ChildrenOutletContexts,
|
||||
ExtraOptions,
|
||||
NoPreloading,
|
||||
Route,
|
||||
Router,
|
||||
ROUTER_CONFIGURATION,
|
||||
RouteReuseStrategy,
|
||||
RouterModule,
|
||||
ROUTES,
|
||||
Routes,
|
||||
TitleStrategy,
|
||||
UrlHandlingStrategy,
|
||||
UrlSerializer,
|
||||
withPreloading,
|
||||
ɵROUTER_PROVIDERS as ROUTER_PROVIDERS,
|
||||
} from '@angular/router';
|
||||
|
||||
function isUrlHandlingStrategy(
|
||||
opts: ExtraOptions | UrlHandlingStrategy,
|
||||
): opts is UrlHandlingStrategy {
|
||||
// This property check is needed because UrlHandlingStrategy is an interface and doesn't exist at
|
||||
// runtime.
|
||||
return 'shouldProcessUrl' in opts;
|
||||
}
|
||||
|
||||
function throwInvalidConfigError(parameter: string): never {
|
||||
throw new Error(
|
||||
`Parameter ${parameter} does not match the one available in the injector. ` +
|
||||
'`setupTestingRouter` is meant to be used as a factory function with dependencies coming from DI.',
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue