Skip to content

Commit

Permalink
refactor(core): remove unused helper for setting LView for reactive…
Browse files Browse the repository at this point in the history
… consumer (#52192)

This code path is never hit because the assignment of the lview happens
in `commitLViewConsumerIfHasProducers`.

PR Close #52192
  • Loading branch information
devversion authored and pkozlowski-opensource committed Oct 13, 2023
1 parent 630e906 commit d75eaa7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/core/src/render3/reactive_lview_consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ export interface ReactiveLViewConsumer extends ReactiveNode {
lView: LView|null;
}

export function setLViewForConsumer(node: ReactiveLViewConsumer, lView: LView): void {
(typeof ngDevMode === 'undefined' || ngDevMode) &&
assertEqual(node.lView, null, 'Consumer already associated with a view.');
node.lView = lView;
}

/**
* Create a new template consumer pointing at the specified LView.
* Sometimes, a previously created consumer may be reused, in order to save on allocations. In that
Expand Down

0 comments on commit d75eaa7

Please sign in to comment.