Browse Source

Remove deprecations older than a year.

Herby Vojčík 2 months ago
parent
commit
cfac736f18

+ 0 - 9
lang/base/boot.js

@@ -83,15 +83,6 @@ define([
 
     brikz();
 
-    // TODO deprecated, remove
-    Object.defineProperty(globals, "CharacterArray", {
-        enumerable: true,
-        configurable: true,
-        get: function () {
-            return this.String;
-        }
-    });
-
     return {
         api: api,
         nilAsReceiver: brikz.nil.nilAsReceiver,

+ 0 - 19
lang/base/kernel-language.js

@@ -299,11 +299,6 @@ define(['./junk-drawer'], function ($goodies) {
                 else if (o.a$cls != null) return o;
                 else return st.wrapJavaScript(o);
             };
-
-            // TODO remove, .iVarNames backward compatibility
-            this.__init__ = function () {
-                brikz.classConstruction.iVarNamesCompat(SmalltalkBehavior);
-            };
         }
 
         ClassConstructionBrik.deps = ["classModel", "behaviorals", "methods"];
@@ -329,20 +324,6 @@ define(['./junk-drawer'], function ($goodies) {
 
             st.setSlots = setSlots;
 
-            // TODO remove, .iVarNames backward compatibility
-            this.iVarNamesCompat = function (SmalltalkBehavior) {
-                Object.defineProperty(SmalltalkBehavior.prototype, "iVarNames", {
-                    enumerable: true,
-                    configurable: true,
-                    get: function () {
-                        return this.slots;
-                    },
-                    set: function (instanceVariableNames) {
-                        setSlots(this, instanceVariableNames);
-                    }
-                });
-            };
-
             /* Smalltalk class creation. A class is an instance of an automatically
              created metaclass object. Newly created classes (not their metaclass)
              should be added to the system, see smalltalk.addClass().

+ 0 - 18
lang/base/kernel-runtime.js

@@ -160,7 +160,6 @@ define(['./junk-drawer'], function ($goodies) {
             }
 
             function initClassSlots (klass) {
-                installIvarCompat(klass);
             }
 
             function copySuperclass (klass) {
@@ -178,23 +177,6 @@ define(['./junk-drawer'], function ($goodies) {
                 });
             }
 
-            // TODO remove, ["@foo"] backward compatibility
-            function installIvarCompat (klass) {
-                var ivars = klass.slots;
-                ivars.forEach(function (ivar) {
-                    Object.defineProperty(klass.fn.prototype, "@" + ivar, {
-                        get: function () {
-                            return this[ivar];
-                        },
-                        set: function (value) {
-                            return this[ivar] = value;
-                        },
-                        enumerable: false,
-                        configurable: true
-                    });
-                });
-            }
-
             /* Create an alias for an existing class */
 
             st.alias = function (traitOrClass, alias) {

+ 0 - 24
lang/src/Compiler-Core.js

@@ -1279,30 +1279,6 @@ return $recv($self._new())._eval_(aString);
 }; }),
 $globals.Compiler.a$cls);
 
-$core.addMethod(
-$core.method({
-selector: "initialize",
-protocol: "initialization",
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: [],
-source: "initialize\x0a\x09\x22TODO remove, backward compat\x22\x0a\x09Smalltalk globals at: #SmalltalkParser put: smalltalkParser",
-referencedClasses: ["Smalltalk"],
-//>>excludeEnd("ide");
-pragmas: [],
-messageSends: ["at:put:", "globals"]
-}, function ($methodClass){ return function (){
-var self=this,$self=this;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-return $core.withContext(function($ctx1) {
-//>>excludeEnd("ctx");
-$recv($recv($globals.Smalltalk)._globals())._at_put_("SmalltalkParser",smalltalkParser);
-return self;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-}, function($ctx1) {$ctx1.fill(self,"initialize",{})});
-//>>excludeEnd("ctx");
-}; }),
-$globals.Compiler.a$cls);
-
 $core.addMethod(
 $core.method({
 selector: "parse:",

+ 0 - 7
lang/src/Compiler-Core.st

@@ -332,13 +332,6 @@ eval: aString
 	^ self new eval: aString
 ! !
 
-!Compiler class methodsFor: 'initialization'!
-
-initialize
-	"TODO remove, backward compat"
-	Smalltalk globals at: #SmalltalkParser put: smalltalkParser
-! !
-
 !Compiler class methodsFor: 'parsing'!
 
 parse: aString