Skip to content

Commit d17e710

Browse files
committed
chore: remove unused methods
1 parent ae85d43 commit d17e710

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

tns-core-modules/ui/tab-navigation-base/tab-navigation-base/tab-navigation-base.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,6 @@ import { View, Property, CoercibleProperty, isIOS, Color } from "../../core/view
1111
// TODO: Impl trace
1212
// export const traceCategory = "TabView";
1313

14-
const TABID = "_tabId";
15-
const INDEX = "_index";
16-
17-
function getTabById(id: number): any {
18-
const ref = _tabs.find(ref => {
19-
const tab = ref.get();
20-
21-
return tab && tab._domId === id;
22-
});
23-
24-
return ref && ref.get();
25-
}
26-
2714
export module knownCollections {
2815
export const items = "items";
2916
}
@@ -370,8 +357,6 @@ export const selectedIndexProperty = new CoercibleProperty<TabNavigationBase, nu
370357
});
371358
selectedIndexProperty.register(TabNavigationBase);
372359

373-
export const _tabs = new Array<WeakRef<TabNavigationBase>>();
374-
375360
export const itemsProperty = new Property<TabNavigationBase, TabContentItem[]>({
376361
name: "items", valueChanged: (target, oldValue, newValue) => {
377362
target.onItemsChanged(oldValue, newValue);

0 commit comments

Comments
 (0)