remove sm-weave-proxy01 hack
authorDan Mills <thunder@mozilla.com>
Wed, 11 Feb 2009 13:47:51 -0800
changeset 45248 3cfbfa7fe1ef918c4282f996d6562be22cdacd0e
parent 45247 ff887dd700da60c89922879c4e549b86ee284680
child 45251 cc7743db48b6afb2777aef77cd357445ba1b36ae
child 45252 4b3126987e82a3630f1551131dd1399d4c5893dc
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
remove sm-weave-proxy01 hack
services/sync/modules/engines.js
services/sync/modules/service.js
--- a/services/sync/modules/engines.js
+++ b/services/sync/modules/engines.js
@@ -179,19 +179,16 @@ SyncEngine.prototype = {
     this.__defineGetter__("_memory", function() mem);
     return mem;
   },
 
   get baseURL() {
     let url = Svc.Prefs.get("clusterURL");
     if (!url)
       return null;
-    // XXX tmp hack for sm-weave-proxy01
-    if (url == "https://sm-weave-proxy01.services.mozilla.com/")
-      return "https://sm-weave-proxy01.services.mozilla.com/weave/0.3/";
     if (url[url.length-1] != '/')
       url += '/';
     url += "0.3/user/";
     return url;
   },
 
   get engineURL() {
     return this.baseURL + ID.get('WeaveID').username + '/' + this.name + '/';
--- a/services/sync/modules/service.js
+++ b/services/sync/modules/service.js
@@ -191,19 +191,16 @@ WeaveSvc.prototype = {
   set baseURL(value) {
     Svc.Prefs.set("serverURL", value);
   },
 
   get clusterURL() {
     let url = Svc.Prefs.get("clusterURL");
     if (!url)
       return null;
-    // XXX tmp hack for sm-weave-proxy01
-    if (url == "https://sm-weave-proxy01.services.mozilla.com/")
-      return "https://sm-weave-proxy01.services.mozilla.com/weave/0.3/";
     if (url[url.length-1] != '/')
       url += '/';
     url += "0.3/user/";
     return url;
   },
   set clusterURL(value) {
     Svc.Prefs.set("clusterURL", value);
     this._genKeyURLs();