Bug 1239085 - Remove Deprecation warning from NewTabUrl.jsm. r=olivier, a=ritu
authorChristoph Kerschbaumer <mozilla@christophkerschbaumer.com>
Tue, 12 Jan 2016 13:17:19 -0800
changeset 310850 581d9ef0a6b8f05452940b3d758dd0b462083f01
parent 310849 bffafd2720162eaa1abf3963b1d9dabe494276be
child 310851 9667c15ae9c93c383b8418354c2a5b6f2ce357d0
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersolivier, ritu
bugs1239085
milestone45.0a2
Bug 1239085 - Remove Deprecation warning from NewTabUrl.jsm. r=olivier, a=ritu
browser/components/newtab/NewTabURL.jsm
--- a/browser/components/newtab/NewTabURL.jsm
+++ b/browser/components/newtab/NewTabURL.jsm
@@ -9,35 +9,27 @@ var Ci = Components.interfaces;
 var Cu = Components.utils;
 
 this.EXPORTED_SYMBOLS = [ "NewTabURL" ];
 
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 XPCOMUtils.defineLazyServiceGetter(this, "aboutNewTabService",
                                    "@mozilla.org/browser/aboutnewtab-service;1",
                                    "nsIAboutNewTabService");
-XPCOMUtils.defineLazyModuleGetter(this, "Deprecated",
-                                  "resource://gre/modules/Deprecated.jsm");
-
-const DepecationURL = "https://bugzilla.mozilla.org/show_bug.cgi?id=1204983#c89";
 
 this.NewTabURL = {
 
   get: function() {
-    Deprecated.warning("NewTabURL.get is deprecated, please query aboutNewTabService.newTabURL", DepecationURL);
     return aboutNewTabService.newTabURL;
   },
 
   get overridden() {
-    Deprecated.warning("NewTabURL.overridden is deprecated, please query aboutNewTabService.overridden", DepecationURL);
     return aboutNewTabService.overridden;
   },
 
   override: function(newURL) {
-    Deprecated.warning("NewTabURL.override is deprecated, please set aboutNewTabService.newTabURL", DepecationURL);
     aboutNewTabService.newTabURL = newURL;
   },
 
   reset: function() {
-    Deprecated.warning("NewTabURL.reset is deprecated, please use aboutNewTabService.resetNewTabURL()", DepecationURL);
     aboutNewTabService.resetNewTabURL();
   }
 };