Skip to content

Commit

Permalink
fix(directive): Remove unhit dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
gund committed Mar 23, 2018
1 parent 7008156 commit b06d9e7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/dynamic/dynamic.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ export class DynamicDirective implements OnChanges, DoCheck, OnDestroy {
return this._extractCompRefFrom(this._componentOutlet) || this._componentInjector.componentRef;
}

private get _canResolveCompRef(): boolean {
return !!this._compRef;
}

constructor(
private _differs: KeyValueDiffers,
private _injector: Injector,
Expand Down Expand Up @@ -229,10 +225,6 @@ export class DynamicDirective implements OnChanges, DoCheck, OnDestroy {
}

private _resolveCompFactory(): ComponentFactory<any> | null {
if (!this._canResolveCompRef) {
return null;
}

try {
try {
return this._cfr.resolveComponentFactory(this._compRef.componentType);
Expand Down

0 comments on commit b06d9e7

Please sign in to comment.