Browse Source

Removes HLReferencesModel >> allSelectors that was slowing down
references further searches

Nicolas Petton 10 years ago
parent
commit
5e1deeec8b
2 changed files with 0 additions and 27 deletions
  1. 0 21
      js/Helios-References.js
  2. 0 6
      st/Helios-References.st

+ 0 - 21
js/Helios-References.js

@@ -814,27 +814,6 @@ referencedClasses: []
 }),
 smalltalk.HLReferencesModel);
 
-smalltalk.addMethod(
-smalltalk.method({
-selector: "allSelectors",
-protocol: 'accessing',
-fn: function (){
-var self=this;
-return smalltalk.withContext(function($ctx1) { 
-var $1;
-$1=_st(_st(self._allMethods())._collect_((function(each){
-return smalltalk.withContext(function($ctx2) {
-return _st(each)._selector();
-}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)})})))._asSet();
-return $1;
-}, function($ctx1) {$ctx1.fill(self,"allSelectors",{},smalltalk.HLReferencesModel)})},
-args: [],
-source: "allSelectors\x0a\x09^ (self allMethods \x0a\x09\x09collect: [ :each | each selector ])\x0a\x09\x09asSet",
-messageSends: ["asSet", "collect:", "allMethods", "selector"],
-referencedClasses: []
-}),
-smalltalk.HLReferencesModel);
-
 smalltalk.addMethod(
 smalltalk.method({
 selector: "classReferencesOf:",

+ 0 - 6
st/Helios-References.st

@@ -284,12 +284,6 @@ allMethods
 	^ self methodsCache
 !
 
-allSelectors
-	^ (self allMethods 
-		collect: [ :each | each selector ])
-		asSet
-!
-
 classReferencesOf: aString
 	"Answer all methods referencing the class named aString"