From 3985f63ba8451a06db149f059ca1845e398d1024 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 22 Apr 2014 13:45:13 +0100 Subject: Remove list builder methods on document matchers --- lib/document-matchers.js | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lib') 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 && -- cgit v1.2.3