refactor(ivy): remove unused constructor argument (#28677)

PR Close #28677
This commit is contained in:
Pawel Kozlowski 2019-02-12 11:28:27 +01:00 committed by Misko Hevery
parent 1df3aefb81
commit b0afc4c638
1 changed files with 4 additions and 5 deletions

View File

@ -21,7 +21,7 @@ import {NodeInjector, getParentInjectorLocation} from './di';
import {addToViewTree, createEmbeddedViewAndNode, createLContainer, renderEmbeddedTemplate} from './instructions'; import {addToViewTree, createEmbeddedViewAndNode, createLContainer, renderEmbeddedTemplate} from './instructions';
import {ACTIVE_INDEX, LContainer, NATIVE, VIEWS} from './interfaces/container'; import {ACTIVE_INDEX, LContainer, NATIVE, VIEWS} from './interfaces/container';
import {TContainerNode, TElementContainerNode, TElementNode, TNode, TNodeType, TViewNode} from './interfaces/node'; import {TContainerNode, TElementContainerNode, TElementNode, TNode, TNodeType, TViewNode} from './interfaces/node';
import {RComment, RElement, Renderer3, isProceduralRenderer} from './interfaces/renderer'; import {RComment, RElement, isProceduralRenderer} from './interfaces/renderer';
import {CONTAINER_INDEX, CONTEXT, LView, QUERIES, RENDERER, TView, T_HOST} from './interfaces/view'; import {CONTAINER_INDEX, CONTEXT, LView, QUERIES, RENDERER, TView, T_HOST} from './interfaces/view';
import {assertNodeOfPossibleTypes} from './node_assert'; import {assertNodeOfPossibleTypes} from './node_assert';
import {addRemoveViewFromContainer, appendChild, detachView, getBeforeNodeForView, insertView, nativeInsertBefore, nativeNextSibling, nativeParentNode, removeView} from './node_manipulation'; import {addRemoveViewFromContainer, appendChild, detachView, getBeforeNodeForView, insertView, nativeInsertBefore, nativeNextSibling, nativeParentNode, removeView} from './node_manipulation';
@ -64,8 +64,7 @@ export function createElementRef(
let R3TemplateRef: { let R3TemplateRef: {
new ( new (
_declarationParentView: LView, elementRef: ViewEngine_ElementRef, _tView: TView, _declarationParentView: LView, elementRef: ViewEngine_ElementRef, _tView: TView,
_renderer: Renderer3, _hostLContainer: LContainer, _injectorIndex: number): _hostLContainer: LContainer, _injectorIndex: number): ViewEngine_TemplateRef<any>
ViewEngine_TemplateRef<any>
}; };
/** /**
@ -97,7 +96,7 @@ export function createTemplateRef<T>(
R3TemplateRef = class TemplateRef_<T> extends TemplateRefToken<T> { R3TemplateRef = class TemplateRef_<T> extends TemplateRefToken<T> {
constructor( constructor(
private _declarationParentView: LView, readonly elementRef: ViewEngine_ElementRef, private _declarationParentView: LView, readonly elementRef: ViewEngine_ElementRef,
private _tView: TView, private _renderer: Renderer3, private _hostLContainer: LContainer, private _tView: TView, private _hostLContainer: LContainer,
private _injectorIndex: number) { private _injectorIndex: number) {
super(); super();
} }
@ -125,7 +124,7 @@ export function createTemplateRef<T>(
ngDevMode && assertDefined(hostTNode.tViews, 'TView must be allocated'); ngDevMode && assertDefined(hostTNode.tViews, 'TView must be allocated');
return new R3TemplateRef( return new R3TemplateRef(
hostView, createElementRef(ElementRefToken, hostTNode, hostView), hostTNode.tViews as TView, hostView, createElementRef(ElementRefToken, hostTNode, hostView), hostTNode.tViews as TView,
getLView()[RENDERER], hostContainer, hostTNode.injectorIndex); hostContainer, hostTNode.injectorIndex);
} else { } else {
return null; return null;
} }