BearND has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/405242 )

Change subject: Hygiene: remove unused addSectionTags for the section case
......................................................................

Hygiene: remove unused addSectionTags for the section case

This has not been used since Parsoid started providing section tags.
Removed also unused parsoid-dom-utils package.

Change-Id: I2cb59493dcb1b88110e6b717b364a05b572c89c2
---
M lib/parsoidSectionsUsingSectionTags.js
M package.json
2 files changed, 0 insertions(+), 16 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps 
refs/changes/42/405242/1

diff --git a/lib/parsoidSectionsUsingSectionTags.js 
b/lib/parsoidSectionsUsingSectionTags.js
index aab9cd3..96c2efb 100644
--- a/lib/parsoidSectionsUsingSectionTags.js
+++ b/lib/parsoidSectionsUsingSectionTags.js
@@ -1,21 +1,7 @@
 'use strict';
 
 const domino = require('domino');
-const parsoidDomUtils = require('parsoid-dom-utils');
 const NodeType = require('./nodeType');
-
-/**
- * @deprecated wait for Parsoid to implement this.
- * New sectioning code: wraps sections in <section> tags. Will likely
- * be replaced by code in Parsoid.
- * @param {!document} doc the parsed DOM Document of the Parsoid output
- */
-function addSectionTags(doc) {
-    // in case this is already handled by Parsoid don't try again
-    if (!doc.querySelector('section')) {
-        parsoidDomUtils.sections.wrap(doc);
-    }
-}
 
 /**
  * Gets the section number from Parsoid.
@@ -141,7 +127,6 @@
 }
 
 module.exports = {
-    addSectionTags,
     getSectionsText,
     justLeadSection,
     testing: {
diff --git a/package.json b/package.json
index 91b5d2b..3800874 100644
--- a/package.json
+++ b/package.json
@@ -55,7 +55,6 @@
     "express": "^4.16.2",
     "js-yaml": "^3.10.0",
     "mediawiki-title": "^0.6.5",
-    "parsoid-dom-utils": "^0.1.3",
     "preq": "^0.5.3",
     "service-runner": "^2.4.2",
     "swagger-router": "^0.7.1",

-- 
To view, visit https://gerrit.wikimedia.org/r/405242
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2cb59493dcb1b88110e6b717b364a05b572c89c2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: BearND <bsitzm...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to