diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/document-matchers.js | 14 |
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 && |
