refactor(ivy): remove all old styling code prior to refactor (#31193)
In the previous patch () all the existing styling code was turned off in favor of using the new refactored ivy styling code. This patch is a follow up patch to that and removes all old, unused styling code from the render3 directory. PR Close #31193
This commit is contained in:

committed by
Kara Erickson

parent
0e68c7edf9
commit
f50dede8f7
@ -14,7 +14,6 @@ import {executeHooks} from './hooks';
|
||||
import {ComponentDef, DirectiveDef} from './interfaces/definition';
|
||||
import {TElementNode, TNode, TViewNode} from './interfaces/node';
|
||||
import {BINDING_INDEX, CONTEXT, DECLARATION_VIEW, FLAGS, InitPhaseState, LView, LViewFlags, OpaqueViewState, TVIEW} from './interfaces/view';
|
||||
import {setCachedStylingContext} from './styling/state';
|
||||
import {resetAllStylingState, resetStylingState} from './styling_next/state';
|
||||
import {resetPreOrderHookFlags} from './util/view_utils';
|
||||
|
||||
@ -489,7 +488,6 @@ export function leaveView(newView: LView, safeToRunHooks: boolean): void {
|
||||
lView[BINDING_INDEX] = tView.bindingStartIndex;
|
||||
}
|
||||
}
|
||||
setCachedStylingContext(null);
|
||||
enterView(newView, null);
|
||||
}
|
||||
|
||||
@ -514,10 +512,6 @@ export function getSelectedIndex() {
|
||||
export function setSelectedIndex(index: number) {
|
||||
_selectedIndex = index;
|
||||
|
||||
// remove the styling context from the cache
|
||||
// because we are now on a different element
|
||||
setCachedStylingContext(null);
|
||||
|
||||
// we have now jumped to another element
|
||||
// therefore the state is stale
|
||||
resetStylingState();
|
||||
|
Reference in New Issue
Block a user