Skip to content

Commit

Permalink
triplet cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
plantec committed Aug 27, 2023
1 parent d216057 commit 3cc519e
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 43 deletions.
3 changes: 1 addition & 2 deletions src/Toplo/ToClickableSkin.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ ToClickableSkin >> adaptNextChildrenArray: anArray in: anElement [
c linear horizontal alignCenter.
c frame vertical alignCenter.
c frame horizontal alignCenter ] ].

^ self shaping adaptNextChildrenArray: anArray in: anElement
^ anArray
]

{ #category : #'t - shapeable - private - shaping/sizing' }
Expand Down
6 changes: 0 additions & 6 deletions src/Toplo/ToControlShaping.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ Class {
#category : #'Toplo-Core-Theme'
}

{ #category : #'private children updating' }
ToControlShaping >> adaptNextChildrenArray: anArray in: anElement [

^ anArray
]

{ #category : #hook }
ToControlShaping >> applyOn: anElement [

Expand Down
11 changes: 0 additions & 11 deletions src/Toplo/ToQuadShaping.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@ Class {
#category : #'Toplo-Core-Theme'
}

{ #category : #'private children updating' }
ToQuadShaping >> adaptNextChildrenArray: anArray in: anElement [

| subs |
subs := super adaptNextChildrenArray: anArray in: anElement.
(anElement verticalRequested and: [ anElement isLabelFirst ])
ifTrue: [ ^ subs reversed ].
^ subs

]

{ #category : #accessing }
ToQuadShaping >> radius [

Expand Down
8 changes: 0 additions & 8 deletions src/Toplo/ToTripletJustifiedStrategy.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,3 @@ ToTripletJustifiedStrategy >> isJustified [

^ true
]

{ #category : #layout }
ToTripletJustifiedStrategy >> onMeasure: anExtentMeasurementSpec in: aTriplet [

" nothing to do, interspace is setup in #initialize "

^ true
]
2 changes: 1 addition & 1 deletion src/Toplo/ToTripletStrategy.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ToTripletStrategy >> onInstalledIn: aTriplet [
{ #category : #layout }
ToTripletStrategy >> onMeasure: anExtentMeasurementSpec in: aTriplet [

self subclassResponsibility
^ true
]

{ #category : #'api - install/uninstall hook' }
Expand Down
8 changes: 0 additions & 8 deletions src/Toplo/ToTripletWithExactInterspaceStrategy.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ ToTripletWithExactInterspaceStrategy >> interspaceWidth [
^ interspace requestedWidth
]

{ #category : #layout }
ToTripletWithExactInterspaceStrategy >> onMeasure: anExtentMeasurementSpec in: aTriplet [

" nothing to do, interspace is with exact size "

^ true
]

{ #category : #accessing }
ToTripletWithExactInterspaceStrategy >> width: anInteger [

Expand Down
7 changes: 0 additions & 7 deletions src/Toplo/ToTripletWithoutInterspaceStrategy.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,3 @@ ToTripletWithoutInterspaceStrategy >> onInstalledIn: anElement [
super onInstalledIn: anElement.
anElement fitContent
]

{ #category : #layout }
ToTripletWithoutInterspaceStrategy >> onMeasure: anExtentMeasurementSpec in: aTriplet [

" Nothing to do "
^ true
]

0 comments on commit 3cc519e

Please sign in to comment.