Skip to content

Commit d79fadd

Browse files
committed
chore: remove unused methods
1 parent da2e8a8 commit d79fadd

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
}
@@ -278,8 +265,6 @@ export const selectedIndexProperty = new CoercibleProperty<TabNavigationBase, nu
278265
});
279266
selectedIndexProperty.register(TabNavigationBase);
280267

281-
export const _tabs = new Array<WeakRef<TabNavigationBase>>();
282-
283268
export const itemsProperty = new Property<TabNavigationBase, TabContentItem[]>({
284269
name: "items", valueChanged: (target, oldValue, newValue) => {
285270
target.onItemsChanged(oldValue, newValue);

0 commit comments

Comments
 (0)