Portability fix in PPCompiler>>cleanGeneratedMethods:
authorJan Vrany <jan.vrany@fit.cvut.cz>
Sun, 26 Oct 2014 22:08:41 +0000
changeset 395 c6c712fc15b7
parent 394 ba6a64ffe00d
child 396 ec569977267a
Portability fix in PPCompiler>>cleanGeneratedMethods: Use more portable coding.
compiler/PPCCompiler.st
--- a/compiler/PPCCompiler.st	Sun Oct 26 22:05:59 2014 +0000
+++ b/compiler/PPCCompiler.st	Sun Oct 26 22:08:41 2014 +0000
@@ -80,8 +80,13 @@
 !
 
 cleanGeneratedMethods: class
-	(class allSelectorsInProtocol: #generated) do: [ :selector | 
-		class removeSelectorSilently: selector ].
+        class methodsDo: [ :mthd |
+            mthd category = #generated ifTrue:[  
+                class removeSelector: mthd selector.
+            ]
+        ]
+
+    "Modified: / 26-10-2014 / 22:07:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 cleanInstVars: class