Skip to content

Commit

Permalink
clean service instance creation
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-krivanek committed Nov 2, 2019
1 parent 377825e commit 7845c88
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 21 deletions.
Expand Up @@ -15,12 +15,6 @@ Class {
#category : #'Rubric-SpecFindReplaceDialog'
}

{ #category : #accessing }
SpRubFindReplaceService class >> newFor: anObject [

^ super new
]

{ #category : #accessing }
SpRubFindReplaceService >> caseSensitive [
^ caseSensitive ifNil: [caseSensitive := RubAbstractTextArea caseSensitiveFinds]
Expand Down
6 changes: 0 additions & 6 deletions src/Rubric/DummyFindReplaceService.class.st
Expand Up @@ -8,12 +8,6 @@ Class {
#category : #'Rubric-Editing-FindReplaceService'
}

{ #category : #accessing }
DummyFindReplaceService class >> newFor: anObject [

^ super new
]

{ #category : #accessing }
DummyFindReplaceService >> caseSensitive [
^ caseSensitive ifNil: [caseSensitive := RubAbstractTextArea caseSensitiveFinds]
Expand Down
6 changes: 0 additions & 6 deletions src/Rubric/RubFindReplaceService.class.st
Expand Up @@ -12,12 +12,6 @@ Class {
#category : #'Rubric-Editing-FindReplaceService'
}

{ #category : #accessing }
RubFindReplaceService class >> newFor: anObject [

^ super new
]

{ #category : #accessing }
RubFindReplaceService >> caseSensitive [
^ caseSensitive ifNil: [caseSensitive := RubAbstractTextArea caseSensitiveFinds]
Expand Down
7 changes: 4 additions & 3 deletions src/Text-Edition/FindReplaceService.class.st
Expand Up @@ -17,10 +17,11 @@ Class {
#category : #'Text-Edition'
}

{ #category : #accessing }
FindReplaceService class >> newFor: anObject [
{ #category : #'instance creation' }
FindReplaceService class >> newFor: textArea [

^ super new
"sublasses may use the text area object"
^ self new
]

{ #category : #accessing }
Expand Down

0 comments on commit 7845c88

Please sign in to comment.