Subramanya Sastry has uploaded a new change for review.
https://gerrit.wikimedia.org/r/177190
Change subject: Removed dead code in attribute expander
......................................................................
Removed dead code in attribute expander
Change-Id: I8ca449938d1c05fbe74cf29e2551891cfba5b38d
---
M lib/ext.core.AttributeExpander.js
1 file changed, 1 insertion(+), 8 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid
refs/changes/90/177190/1
diff --git a/lib/ext.core.AttributeExpander.js
b/lib/ext.core.AttributeExpander.js
index cc1bf4e..29af2d0 100644
--- a/lib/ext.core.AttributeExpander.js
+++ b/lib/ext.core.AttributeExpander.js
@@ -23,9 +23,7 @@
* ---------------------------------------------------------- */
function stripMetaTags( tokens, wrapTemplates ) {
var isPushed, buf = [],
- hasGeneratedContent = false,
- inTpl = false,
- inInclude = false;
+ hasGeneratedContent = false;
for (var i = 0, l = tokens.length; i < l; i++) {
var token = tokens[i];
@@ -38,12 +36,7 @@
var typeMatch = t &&
t.match(/(mw:(Transclusion|Param|Extension|Includes\/)(.*)?$)/);
if (typeMatch) {
if (!typeMatch[1].match(/\/End$/)) {
- inTpl =
typeMatch[1].match(/Transclusion|Param|Extension/);
- inInclude = !inTpl;
hasGeneratedContent = true;
- } else {
- inTpl = false;
- inInclude = false;
}
} else {
isPushed = true;
--
To view, visit https://gerrit.wikimedia.org/r/177190
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8ca449938d1c05fbe74cf29e2551891cfba5b38d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits