[Groonga-commit] groonga/gcs [ember] Remove unused codes

Back to archive index

Yoji SHIDARA null+****@clear*****
Tue Sep 25 19:15:22 JST 2012


Yoji SHIDARA	2012-09-25 19:15:22 +0900 (Tue, 25 Sep 2012)

  New Revision: 460d6581193f4de9762956fa660c3b6510bc0375
  https://github.com/groonga/gcs/commit/460d6581193f4de9762956fa660c3b6510bc0375

  Log:
    Remove unused codes

  Modified files:
    public/js/gcs.js

  Modified: public/js/gcs.js (+0 -11)
===================================================================
--- public/js/gcs.js    2012-09-25 19:14:04 +0900 (49161f8)
+++ public/js/gcs.js    2012-09-25 19:15:22 +0900 (8824629)
@@ -248,14 +248,3 @@ App.Router = Ember.Router.extend({
     })
   })
 });
-
-var hostAndPort = getHostAndPort();
-
-function getHostAndPort() {
-  var hostAndPort = location.host.split(':');
-  if (hostAndPort[0] == 'localhost')
-    hostAndPort[0] = '127.0.0.1';
-  if (hostAndPort[0].match(/^\d+\.\d+\.\d+\.\d+$/))
-    hostAndPort[0] += '.xip.io';
-  return hostAndPort.join(':');
-}
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index