Skip to content

Commit

Permalink
Update SystemDictionary.class.st
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Aug 6, 2019
1 parent d5b65c4 commit ae6f09d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/System-Support/SystemDictionary.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,11 @@ SystemDictionary >> removeClassNamed: aName [
]

{ #category : #removing }
SystemDictionary >> removeFromCaches: aClassName [
SystemDictionary >> removeFromCaches: aKey [
"In case we remove a key from the system dictionary, we do not need to flush all the caches. We can just remove it from the class name and non class name caches."

cachedClassNames ifNotNil: [ :cache | cache remove: aClassName ifAbsent: [ ] ].
cachedNonClassNames ifNotNil: [ :cache | cache remove: aClassName ifAbsent: [ ] ].
cachedClassNames ifNotNil: [ :cache | cache remove: aKey ifAbsent: [ ] ].
cachedNonClassNames ifNotNil: [ :cache | cache remove: aKey ifAbsent: [ ] ].
cachedBehaviors := nil
]

Expand Down

0 comments on commit ae6f09d

Please sign in to comment.