فهرست منبع

kernel: Remove unused event.

Herby Vojčík 4 سال پیش
والد
کامیت
b2870a8a08
1فایلهای تغییر یافته به همراه0 افزوده شده و 4 حذف شده
  1. 0 4
      lang/base/kernel-language.js

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

@@ -154,22 +154,18 @@ define(['./junk-drawer'], function ($goodies) {
                 return 'Smalltalk Trait ' + this.name;
             };
 
-            declareEvent("traitMethodAdded");
             SmalltalkTrait.prototype.methodAdded = function (method) {
                 var self = this;
                 this.traitUsers.forEach(function (each) {
                     traitMethodChanged(method.selector, method, self, each);
                 });
-                emit.traitMethodAdded(method, this);
             };
 
-            declareEvent("traitMethodRemoved");
             SmalltalkTrait.prototype.methodRemoved = function (method) {
                 var self = this;
                 this.traitUsers.forEach(function (each) {
                     traitMethodChanged(method.selector, null, self, each);
                 });
-                emit.traitMethodRemoved(method, this);
             };
 
             function traitBuilder (traitName, category) {