Remove console.debug deprecation warnings (for now)
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 18 May 2015 16:33:35 +0000 (18:33 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 18 May 2015 16:35:33 +0000 (18:35 +0200)
wcfsetup/install/files/js/WCF.js
wcfsetup/install/files/js/WoltLab/WCF/Bootstrap.js

index e42aea85dc210ce9f85710896f04a2b733a5b47f..2a7060bf3ff75dfa7f643d5b1cee0f24e5312ec0 100755 (executable)
@@ -3380,13 +3380,11 @@ WCF.Dictionary = Class.extend({
  */
 WCF.Language = {
        add: function(key, value) {
-               console.warn('Call to deprecated WCF.Language.add("' + key + '")');
                require(['WoltLab/WCF/Language'], function(Language) {
                        Language.add(key, value);
                });
        },
        addObject: function(object) {
-               console.warn('Call to deprecated WCF.Language.addObject()');
                require(['WoltLab/WCF/Language'], function(Language) {
                        Language.addObject(object);
                });
index 528f3b2c29c17e74ceeb20a909105b7ec265a78f..73d47ecc896def13c9f9754d8a68779b88297c63 100644 (file)
@@ -24,18 +24,9 @@ define(
        
        window.Favico = favico;
        window.enquire = enquire;
-       window.WCF.Language.get = function(key, parameters) {
-               console.warn('Call to deprecated WCF.Language.get("' + key + '")');
-               return Language.get(key, parameters);
-       };
-       window.WCF.Language.add = function(key, value) {
-               console.warn('Call to deprecated WCF.Language.add("' + key + '")');
-               return Language.add(key, value);
-       };
-       window.WCF.Language.addObject = function(object) {
-               console.warn('Call to deprecated WCF.Language.addObject()');
-               return Language.addObject(object);
-       };
+       window.WCF.Language.get = Language.get;
+       window.WCF.Language.add = Language.add;
+       window.WCF.Language.addObject = Language.addObject;
        
        /**
         * @constructor