Catrope has uploaded a new change for review. ( 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(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/14/378814/1 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: newchange Gerrit-Change-Id: Ia5cb53ef46cdc744b393401d735f7d4baa1c07c5 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Catrope <r...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits