jenkins-bot has submitted this change and it was merged. (
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(-)
Approvals:
jenkins-bot: Verified
Mholloway: Looks good to me, approved
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: merged
Gerrit-Change-Id: I2cb59493dcb1b88110e6b717b364a05b572c89c2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: BearND <[email protected]>
Gerrit-Reviewer: BearND <[email protected]>
Gerrit-Reviewer: Fjalapeno <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: Mholloway <[email protected]>
Gerrit-Reviewer: Mhurd <[email protected]>
Gerrit-Reviewer: Ppchelko <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits