Skip to content

Commit

Permalink
unused code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Nov 25, 2023
1 parent 8cf4a36 commit a3d524e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 64 deletions.
3 changes: 1 addition & 2 deletions repository/OpenPonk-Core/OPElementController.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ OPElementController >> createDiagramElement [

{ #category : #deprecated }
OPElementController >> createFigure [
self deprecated: 'Use renderFigureIn: instead.'.

" ^ OPRTCallbackBuilder block: [ :view | self createFigureInView: view ]"
self deprecated: 'Use renderFigureIn: instead.'
]

{ #category : #deprecated }
Expand Down
46 changes: 0 additions & 46 deletions repository/OpenPonk-Roassal/OPRSRemoveable.class.st

This file was deleted.

5 changes: 2 additions & 3 deletions repository/OpenPonk-Spec/OPDefaultNavigatorAdapter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ OPDefaultNavigatorAdapter >> displayMapping [
{ #category : #'widget API' }
OPDefaultNavigatorAdapter >> hasMappingFor: anObject in: aModel [

^ {
^ {
OPProject.
OPTestModel.
OPTestContainerModel } anySatisfy: [ :any |
OPTestContainerModel } anySatisfy: [ :any |
anObject isKindOf: any ]
]

Expand Down
6 changes: 2 additions & 4 deletions repository/OpenPonk-Spec/OPExportImageDialog.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ OPExportImageDialog >> confirmed [
file ifNil: [ ^ self ].
zoomNumber := (NumberParser
parse: zoomText text
onError: [
TRCamera basicNew defaultCameraScale * 100 ]) / 100.
zoomNumber < 0.01 ifTrue: [
zoomNumber := TRCamera basicNew defaultCameraScale ].
onError: [ RSCamera new scale * 100 ]) / 100.
zoomNumber < 0.01 ifTrue: [ zoomNumber := RSCamera new scale ].

okAction cull: file cull: zoomNumber
]
Expand Down
9 changes: 0 additions & 9 deletions repository/OpenPonk-Spec/OPPalette.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,6 @@ OPPalette >> newCreationTool: aFactoryBlock with: aToolConfigBlock [
^ item
]

{ #category : #protocol }
OPPalette >> newModelCreationTool: aFactoryBlock [
| entry |
entry := self addEntry.
entry tool: (OPModelCreationTool new palette: self).
entry factory: aFactoryBlock.
^ entry
]

{ #category : #private }
OPPalette >> newSelectionTool [

Expand Down

0 comments on commit a3d524e

Please sign in to comment.