Browse Source

remove './compatibility' pseudo-dep

Herbert Vojčík 6 years ago
parent
commit
8dda13d7ae

+ 0 - 2
Gruntfile.js

@@ -76,7 +76,6 @@ module.exports = function (grunt) {
                 options: {
                     mainConfigFile: "config.js",
                     rawText: {
-                        "amber/compatibility": "/* stub */", //eg. nothing, TODO remove
                         "amber/Platform": "/* stub */", //eg. nothing, TODO remove
                         "__app__": "(" + function () {
                             define(["amber/devel", "amber_core/Platform-Node", "amber_cli/AmberCli"], function (amber) {
@@ -105,7 +104,6 @@ module.exports = function (grunt) {
                 options: {
                     mainConfigFile: "config.js",
                     rawText: {
-                        "amber/compatibility": "/* stub */", //eg. nothing, TODO remove
                         "amber/Platform": "/* stub */", //eg. nothing, TODO remove
                         "__app__": "(" + function () {
                             define(["amber/devel", "amber_core/Platform-Node", "amber_devkit/NodeTestRunner"], function (amber) {

+ 0 - 1
internal/index.html

@@ -10,7 +10,6 @@
             baseUrl: "..",
             map: {"*": {
                 "amber/Platform": "amber/brikz", //eg. nothing, TODO remove
-                "amber/compatibility": "amber/brikz" //eg. nothing, TODO remove
             }}
         };
     </script>

+ 1 - 1
support/boot.js

@@ -40,7 +40,7 @@
 //jshint eqnull:true
 
 define([
-    'require', './kernel-checks', './brikz', './kernel-fundamentals', './kernel-language', './compatibility' /* TODO remove */
+    'require', './kernel-checks', './brikz', './kernel-fundamentals', './kernel-language'
 ], function (require, _, Brikz, configureWithFundamentals, configureWithHierarchy) {
     "use strict";
 

+ 0 - 13
support/browser-compatibility.js

@@ -1,13 +0,0 @@
-// TODO remove
-
-/* Make sure that console is defined */
-if(typeof console === "undefined") {
-    this.console = {
-        dir: function() {},
-        log: function() {},
-        warn: function() {},
-        info: function() {},
-        debug: function() {},
-        error: function() {}
-    };
-}

+ 0 - 1
support/devel.js

@@ -1,6 +1,5 @@
 define([
     './lang',
-    './compatibility', // pre-fetch, dep of ./boot, TODO remove
     './brikz', // pre-fetch, dep of ./boot
     './kernel-checks', // pre-fetch, dep of ./boot
     './kernel-fundamentals', // pre-fetch, dep of ./boot

+ 1 - 1
support/kernel-fundamentals.js

@@ -39,7 +39,7 @@
 
 //jshint eqnull:true
 
-define(['./compatibility' /* TODO remove */], function () {
+define(function () {
     "use strict";
 
     function inherits (child, parent) {

+ 1 - 1
support/kernel-language.js

@@ -39,7 +39,7 @@
 
 //jshint eqnull:true
 
-define(['./compatibility' /* TODO remove */], function () {
+define(function () {
     "use strict";
 
     function inherits (child, parent) {

+ 0 - 1
support/node-compatibility.js

@@ -1 +0,0 @@
-// TODO remove