jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/378814 )
Change subject: mw.cx.init.Translation: Remove unused processSourcePageContent
......................................................................
mw.cx.init.Translation: Remove unused processSourcePageContent
The string 'processSourcePageContent' appears nowhere else in the repo,
and this code only confuses things because it refers to dm.SourcePage,
which also doesn't exist any more.
Change-Id: Ia5cb53ef46cdc744b393401d735f7d4baa1c07c5
---
M modules/mw.cx.init.Translation.js
1 file changed, 0 insertions(+), 20 deletions(-)
Approvals:
jenkins-bot: Verified
Santhosh: Looks good to me, approved
diff --git a/modules/mw.cx.init.Translation.js
b/modules/mw.cx.init.Translation.js
index 6c78230..1fb6977 100644
--- a/modules/mw.cx.init.Translation.js
+++ b/modules/mw.cx.init.Translation.js
@@ -199,26 +199,6 @@
} );
};
-/**
- * @param {Object} content Segmented content
- * @return {mw.cx.dm.SourcePage}
- */
-mw.cx.init.Translation.prototype.processSourcePageContent = function ( content
) {
- var sourcePage;
- // Update with revision information
- this.sourceWikiPage = new mw.cx.dm.WikiPage(
- this.sourceWikiPage.getTitle(),
- this.sourceWikiPage.getLanguage(),
- content.revision
- );
- // BC
- this.config.sourceRevision = content.revision;
-
- sourcePage = new mw.cx.dm.SourcePage( this.config );
- sourcePage.setSections( $.parseHTML( content.segmentedContent ) );
- return sourcePage;
-};
-
mw.cx.init.Translation.prototype.fetchSourcePageContentError = function ( xhr
) {
if ( xhr.status === 404 ) {
mw.hook( 'mw.cx.error' ).fire(
--
To view, visit https://gerrit.wikimedia.org/r/378814
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia5cb53ef46cdc744b393401d735f7d4baa1c07c5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Catrope <[email protected]>
Gerrit-Reviewer: Santhosh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits