Skip to content

Commit 6d6743a

Browse files
committed
refactor: remove unused method from view-util
1 parent eb86d3e commit 6d6743a

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

nativescript-angular/view-util.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -245,28 +245,6 @@ export class ViewUtil {
245245
}
246246
}
247247

248-
// finds the node in the parent's views and returns the next index
249-
// returns -1 if the node has no parent or next sibling
250-
// public nextSiblingIndex(node: NgView): number {
251-
// const parent = node.parent;
252-
// if (!parent) {
253-
// return -1;
254-
// }
255-
256-
// let index = 0;
257-
// let found = false;
258-
// parent.eachChild(child => {
259-
// if (child === node) {
260-
// found = true;
261-
// }
262-
263-
// index += 1;
264-
// return !found;
265-
// });
266-
267-
// return found ? index : -1;
268-
// }
269-
270248
private runsIn(platform: string): boolean {
271249
return (platform === "ios" && this.isIos) ||
272250
(platform === "android" && this.isAndroid);

0 commit comments

Comments
 (0)