Created
October 10, 2016 15:28
-
-
Save tinchodias/85ce17aaf67f6d5ee059d9ef1b3ee8a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait := EpTEventVisitor. | |
trait users do: [ :behavior | | |
behavior localSelectors do: [ :selector | | |
(trait includesSelector: selector) ifTrue: [ | |
| localSourceCode traitSourceCode | | |
localSourceCode := behavior sourceCodeAt: selector. | |
traitSourceCode := trait sourceCodeAt: selector. | |
localSourceCode = traitSourceCode ifTrue: [ | |
behavior removeSelector: selector ] ] | |
] ]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment