aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-04-22 13:45:13 +0100
committerMichael Williamson <mike@zwobble.org>2014-04-22 13:45:13 +0100
commit3985f63ba8451a06db149f059ca1845e398d1024 (patch)
treeca51755c35788341b5ab04357706861736dcd014 /lib
parent4423acf4ff5124585d5d2483bd0651fa5c29e083 (diff)
Remove list builder methods on document matchers
Diffstat (limited to 'lib')
-rw-r--r--lib/document-matchers.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/document-matchers.js b/lib/document-matchers.js
index ae8a922..9f138ea 100644
--- a/lib/document-matchers.js
+++ b/lib/document-matchers.js
@@ -28,20 +28,6 @@ Matcher.prototype.matches = function(element) {
(this._listIndex === undefined || isList(element, this._listIndex, this._listIsOrdered));
};
-Matcher.prototype.orderedList = function(levelIndex) {
- return this.list({isOrdered: true, levelIndex: levelIndex});
-};
-
-Matcher.prototype.unorderedList = function(levelIndex) {
- return this.list({isOrdered: false, levelIndex: levelIndex});
-};
-
-Matcher.prototype.list = function(options) {
- this._listIndex = options.levelIndex;
- this._listIsOrdered = options.isOrdered;
- return this;
-};
-
function isList(element, levelIndex, isOrdered) {
return element.numbering &&
element.numbering.level == levelIndex &&