aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/ngIf.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ng/directive/ngIf.js')
-rw-r--r--src/ng/directive/ngIf.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/ng/directive/ngIf.js b/src/ng/directive/ngIf.js
index 662f3f32..3f56449f 100644
--- a/src/ng/directive/ngIf.js
+++ b/src/ng/directive/ngIf.js
@@ -108,22 +108,4 @@ var ngIfDirective = ['$animate', function($animate) {
};
}
};
-
- // TODO(bford): this helper was copypasta'd from ngRepeat
- function getBlockElements(block) {
- if (block.startNode === block.endNode) {
- return jqLite(block.startNode);
- }
-
- var element = block.startNode;
- var elements = [element];
-
- do {
- element = element.nextSibling;
- if (!element) break;
- elements.push(element);
- } while (element !== block.endNode);
-
- return jqLite(elements);
- }
}];