Santhosh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/306187

Change subject: Remove unused method adaptTitle
......................................................................

Remove unused method adaptTitle

Change-Id: I3474160a9c5e31870a73ce102de2b9bd39c45fe0
---
M modules/tools/ext.cx.tools.template.js
1 file changed, 0 insertions(+), 19 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/87/306187/1

diff --git a/modules/tools/ext.cx.tools.template.js 
b/modules/tools/ext.cx.tools.template.js
index 0907ae0..dc27153 100644
--- a/modules/tools/ext.cx.tools.template.js
+++ b/modules/tools/ext.cx.tools.template.js
@@ -335,25 +335,6 @@
        };
 
        /**
-        * Adapt the template name to the equivalent in the target wiki
-        */
-       TemplateTool.prototype.adaptTitle = function ( targetTitle ) {
-               var self = this;
-               // Update the name of the template. We need template name 
without namespace
-               return this.getTemplateNamespaceTranslation( 
this.targetLanguage )
-                       .done( function ( translatedNamespace ) {
-                               var templateName;
-
-                               templateName = targetTitle.replace(
-                                       new RegExp( '^' + mw.RegExp.escape( 
translatedNamespace + ':' ) ),
-                                       ''
-                               );
-                               self.templateData.parts[ 0 ].template.target.wt 
= templateName;
-                               self.$template.attr( 'data-mw', JSON.stringify( 
self.templateData ) );
-                       } );
-       };
-
-       /**
         * Marks template non-editable.
         */
        TemplateTool.prototype.markReadOnly = function () {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3474160a9c5e31870a73ce102de2b9bd39c45fe0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com>

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

Reply via email to