Jdlrobson has uploaded a new change for review.

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

Change subject: Hygiene: Remove unused method don't expose methods we are not 
using.
......................................................................

Hygiene: Remove unused method don't expose methods we are not using.

* unlockViewport and prettyEncodeTitle are not used anywhere.
deparam is only run in application.js so does not need to be exposed.

Change-Id: Iab8e3c80f70858dfe3e9749f3c125d100faad4a4
---
M javascripts/Overlay.js
M javascripts/application.js
2 files changed, 1 insertion(+), 24 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/39/173339/1

diff --git a/javascripts/Overlay.js b/javascripts/Overlay.js
index 0af8d32..dbc7355 100644
--- a/javascripts/Overlay.js
+++ b/javascripts/Overlay.js
@@ -175,8 +175,6 @@
                hide: function ( force ) {
                        var self = this;
 
-                       // FIXME: allow zooming outside the overlay again
-                       // M.unlockViewport();
                        // FIXME: remove when OverlayManager used everywhere
                        if ( this.parent ) {
                                this.parent.show();
diff --git a/javascripts/application.js b/javascripts/application.js
index ae65491..2e92c19 100644
--- a/javascripts/application.js
+++ b/javascripts/application.js
@@ -106,15 +106,6 @@
        }
 
        /**
-        * Unlocks viewport so that pinch zooming is enabled
-        *
-        * @method
-        */
-       function unlockViewport() {
-               $viewportMeta.attr( 'content', viewport );
-       }
-
-       /**
         * Tests current window size and if suitable loads styles and scripts 
specific for larger devices
         * FIXME: Separate from application.js
         *
@@ -268,15 +259,6 @@
        }
 
        /**
-        * Tidy up a page title
-        * @method
-        * @return {String}
-        */
-       function prettyEncodeTitle( title ) {
-               return encodeURIComponent( title.replace( / /g, '_' ) 
).replace( /%3A/g, ':' ).replace( /%2F/g, '/' );
-       }
-
-       /**
         * FIXME: sandbox from mf-application.js
         *
         * @method
@@ -319,7 +301,7 @@
                return sessionId;
        }
 
-       /**
+       /*
         * Takes a Query string and turns it into a JavaScript object mapping 
parameter names
         * to values. Does the opposite of $.param
         *
@@ -407,9 +389,7 @@
                supportsPositionFixed: supportsPositionFixed,
                isIos: isIos,
                isIos8: isIos8,
-               prettyEncodeTitle: prettyEncodeTitle,
                query: deParam( qs ),
-               unlockViewport: unlockViewport,
                /**
                 * Navigation router instance
                 * @type {Router}
@@ -425,7 +405,6 @@
                 * @type {PageApi}
                 */
                pageApi: pageApi,
-               deParam: deParam,
                /**
                 * User Bucketing for A/B testing
                 ** (we want this to be the same everywhere)

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iab8e3c80f70858dfe3e9749f3c125d100faad4a4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to