Skip to content

Commit

Permalink
Merge pull request #1890 from Ducasse/FixingReleaseTests
Browse files Browse the repository at this point in the history
Removing dead code
  • Loading branch information
jecisc authored Jan 30, 2025
2 parents 78ab3ca + 5e174d5 commit cc64c72
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 38 deletions.
22 changes: 7 additions & 15 deletions Iceberg-Playground-Plugin-Gist/IcePublishGistPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,11 @@ Class {
}

{ #category : 'accessing' }
IcePublishGistPresenter class >> initialExtent [
IcePublishGistPresenter class >> defaultPreferredExtent [

^ 600@400
]

{ #category : 'accessing' }
IcePublishGistPresenter class >> windowTitle [

^ 'Publish Gist'
]

{ #category : 'accessing' }
IcePublishGistPresenter >> content: aString [

Expand Down Expand Up @@ -88,14 +82,6 @@ IcePublishGistPresenter >> initializePresenters [
beForScripting
]

{ #category : 'initialization' }
IcePublishGistPresenter >> initializeWindow: aWindowPresenter [

aWindowPresenter
title: self class windowTitle;
initialExtent: self class initialExtent.
]

{ #category : 'actions' }
IcePublishGistPresenter >> publishThen: aBlock [
| description public jsonResult |
Expand Down Expand Up @@ -143,3 +129,9 @@ IcePublishGistPresenter >> whenPublishedDo: aBlock [

publishedAction := aBlock
]

{ #category : 'events' }
IcePublishGistPresenter >> windowTitle [

^ 'Publish Gist'
]
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ IceTipRefreshPullRequestsCommand >> execute [
{ #category : 'accessing' }
IceTipRefreshPullRequestsCommand >> iconName [

^ #glamorousRefresh
^ #refresh
]

{ #category : 'accessing' }
Expand Down
4 changes: 3 additions & 1 deletion Iceberg-TipUI/IceTipAbstractCredentialsPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ IceTipAbstractCredentialsPresenter >> hostnameFromInput [

{ #category : 'initialization' }
IceTipAbstractCredentialsPresenter >> initialize [
askingHostname := 'default host name'.
super initialize.
accepted := false
accepted := false.

]

{ #category : 'initialization' }
Expand Down
2 changes: 1 addition & 1 deletion Iceberg-TipUI/IceTipCreateTagCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ IceTipCreateTagCommand >> execute [
{ #category : 'activation' }
IceTipCreateTagCommand >> iconName [

^ #glamorousBookmark
^ #bookmark
]
2 changes: 1 addition & 1 deletion Iceberg-TipUI/IceTipCritiquesBeforeCommitBrowser.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ IceTipCritiquesBeforeCommitBrowser >> initializePresenters [
browseButton := self newButton.
browseButton label: 'Browse Entity'.
browseButton action: (MessageSend receiver: self selector: #doBrowse).
browseButton icon: (self iconNamed: #glamorousBrowse).
browseButton icon: (self iconNamed: #browse).

autofixButton := self newButton.
autofixButton label: 'Autofix'.
Expand Down
2 changes: 1 addition & 1 deletion Iceberg-TipUI/IceTipInspectCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ IceTipInspectCommand >> execute [
{ #category : 'accessing' }
IceTipInspectCommand >> iconName [

^ #glamorousInspect
^ #inspect
]
6 changes: 0 additions & 6 deletions Iceberg-TipUI/IceTipPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ IceTipPresenter >> decorations [
^ decorations ifNil: [ decorations := self class buildDecorations ]
]

{ #category : 'initialization' }
IceTipPresenter >> setInitialExtentTo: aSpWindowPresenter [

aSpWindowPresenter initialExtent: self initialExtentForWindow
]

{ #category : 'extensions' }
IceTipPresenter >> updateTitle [

Expand Down
2 changes: 1 addition & 1 deletion Iceberg-TipUI/IceTipRefreshCommitCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ IceTipRefreshCommitCommand >> execute [
{ #category : 'accessing' }
IceTipRefreshCommitCommand >> iconName [

^ #glamorousRefresh
^ #refresh
]

{ #category : 'accessing' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ IceTipRemoveFromRepositoryPackageCommand >> execute [
{ #category : 'accessing' }
IceTipRemoveFromRepositoryPackageCommand >> iconName [

^ #glamorousTrash
^ #trash
]
2 changes: 1 addition & 1 deletion Iceberg-TipUI/IceTipRepairLocateRepository.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This happens if the repository has been removed from the disk or the image was p

{ #category : 'accessing' }
IceTipRepairLocateRepository class >> icon [
^ self iconNamed: #glamorousFolder
^ self iconNamed: #folder
]

{ #category : 'testing' }
Expand Down
2 changes: 1 addition & 1 deletion Iceberg-TipUI/IceTipRepositoryModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ IceTipRepositoryModel >> repositoryModelsByGroup [
"Tags group"
((IceTipTreeRepositoryGroup on: self)
name: 'Tags';
iconFormSet: (self iconFormSetNamed: #glamorousBookmark);
iconFormSet: (self iconFormSetNamed: #bookmark);
children: (tags collect: [ :each | IceTipTreeTag on: each ]);
yourself) }
"Branches group"
Expand Down
2 changes: 1 addition & 1 deletion Iceberg-TipUI/IceTipUnloadAndRemovePackageCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ IceTipUnloadAndRemovePackageCommand >> execute [
{ #category : 'accessing' }
IceTipUnloadAndRemovePackageCommand >> iconName [

^ #glamorousTrash
^ #trash
]
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,5 @@ IceTipAskForPlaintextCredentialsModelTest >> testTitle [
dialog askingHostname: 'github.com'.
self openNonModal: dialog.

self assert: dialog titleForWindow equals: 'Please log in to github.com'.
self assert: dialog windowTitle equals: 'Please log in to github.com'.
]
11 changes: 5 additions & 6 deletions Iceberg-UI-Tests/IceTipPresenterMetaTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,18 @@ IceTipPresenterMetaTest >> testDefaultSpecDoesntUsePragma [
{ #category : 'tests' }
IceTipPresenterMetaTest >> testDoNotImplementDiscouragedSelectors [

"Either instance or class-side, the old #title is named #titleForWindow in inst-side."
self assertEmpty: (self presenterClassesDefining: #title isMeta: true).
self assertEmpty: (self presenterClassesDefining: #title isMeta: false).
"Either instance the old #title is named #windowTitle in inst-side."
self assertEmpty: (self presenterClassesDefining: #windowTitle isMeta: true).

"The #icon is called #iconForWindow in IceTip UI."
self assertEmpty: (self presenterClassesDefining: #icon isMeta: true).
"The #icon is called #windowIcon in IceTip UI."
self assertEmpty: (self presenterClassesDefining: #windowIcon isMeta: true).

"These methods are not yet deprecated via pragma, but discouraged in Spec2."
self assertEmpty: (self presenterClassesDefining: #initialExtent isMeta: false).
self assertEmpty: (self presenterClassesDefining: #initializeWidgets isMeta: false).
self assertEmpty: (self presenterClassesDefining: #initializePresenter isMeta: false).

self assertEmpty: (self presenterClassesDefining: #windowIcon isMeta: false).



]
Expand Down

0 comments on commit cc64c72

Please sign in to comment.