Skip to content

Commit

Permalink
- clean up the, very odd, code around #externalProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusDenker committed Jul 14, 2020
1 parent dab76db commit 26d325f
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 62 deletions.
9 changes: 0 additions & 9 deletions src/GT-Spotter/GTSpotterExtensionSettings.class.st
Expand Up @@ -14,15 +14,6 @@ Class {
#category : #'GT-Spotter-Model'
}

{ #category : #settings }
GTSpotterExtensionSettings class >> defaultStateOf: aMethod [

"I return the default state of a given spotter extension, so the settings can be correctly created"
"All methods are active but "

^ (aMethod methodClass = Object and: [ aMethod selector = #spotterRePropertiesFor: ]) not
]

{ #category : #private }
GTSpotterExtensionSettings class >> disabledExtensions [
^ disabledExtensions ifNil: [ disabledExtensions := Set new ]
Expand Down
14 changes: 0 additions & 14 deletions src/GT-Spotter/Object.extension.st
Expand Up @@ -105,17 +105,3 @@ Object >> spotterProcessorsFor: aSpotterStep pragma: aPragma [
(aSpotterStep processors last: addedProcessorsSize)
do: [ :processor | processor order: (aPragma argumentAt: 1) ]
]

{ #category : #'*GT-Spotter' }
Object >> spotterRePropertiesFor: aStep [
<spotterOrder: 0>

ReSettings spotterPlugin ifFalse: [ ^ self ].

aStep listProcessor
title: 'Renraku Properties';
items: [ self externalProperties asArray ];
itemName: #title;
itemIcon: #icon;
filter: GTFilterSubstring
]
1 change: 0 additions & 1 deletion src/Renraku/ClassDescription.extension.st
Expand Up @@ -28,7 +28,6 @@ ClassDescription >> banLevelCandidates [

{ #category : #'*renraku' }
ClassDescription >> critiques [
<eProperty>
^ ReCriticEngine critiquesOf: self
]

Expand Down
1 change: 0 additions & 1 deletion src/Renraku/CompiledMethod.extension.st
Expand Up @@ -29,7 +29,6 @@ CompiledMethod >> banLevelCandidates [

{ #category : #'*renraku' }
CompiledMethod >> critiques [
<eProperty>
| critiques |

critiques := ReCriticEngine critiquesOf: self.
Expand Down
30 changes: 0 additions & 30 deletions src/Renraku/Object.extension.st
Expand Up @@ -30,33 +30,3 @@ Object >> glmCritiqueSourceIn: composite [

"display nothing for now"
]

{ #category : #'*renraku' }
Object >> gtInspectorEProportiesIn: composite [
"This provides a list of all external properties"

<gtInspectorPresentationOrder: 20>
| eProperties ePropLazy |

ReSettings inspectorPluggin ifFalse: [ ^ self ].

ePropLazy := [
eProperties ifNil: [ eProperties := self externalProperties ] ].

composite list
when: [ ePropLazy value notEmpty ];
title: [ ePropLazy value size asString, (' property' asPluralBasedOn: ePropLazy value) ];
titleIcon: [ CircleMorph new
extent: 16 @ 16;
borderWidth: 0;
color: Color red darker darker;
addMorphCentered:
(ePropLazy value size asStringMorph
color: Color white;
emphasis: 1;
yourself);
iconOrThumbnail ];
display: [ ePropLazy value ];
icon: #icon;
format: #title
]
2 changes: 0 additions & 2 deletions src/Renraku/RBProgramNode.extension.st
Expand Up @@ -24,8 +24,6 @@ RBProgramNode >> banLevelCandidates [

{ #category : #'*renraku' }
RBProgramNode >> critiques [
<eProperty>

^ ReCriticEngine critiquesOf: self
]

Expand Down
3 changes: 0 additions & 3 deletions src/Renraku/RGMethodDefinition.extension.st
Expand Up @@ -2,8 +2,5 @@ Extension { #name : #RGMethodDefinition }

{ #category : #'*renraku' }
RGMethodDefinition >> critiques [

<eProperty>

^ self compiledMethod critiques
]
2 changes: 0 additions & 2 deletions src/Renraku/RPackage.extension.st
Expand Up @@ -28,8 +28,6 @@ RPackage >> banLevelCandidates [

{ #category : #'*renraku' }
RPackage >> critiques [
<eProperty>

^ ReCriticEngine critiquesOf: self
]

Expand Down

0 comments on commit 26d325f

Please sign in to comment.