Skip to content

Commit

Permalink
Merge pull request #667 from MarcusDenker/TrivialCleanup
Browse files Browse the repository at this point in the history
Trivial cleanup: Duplicated methods and category
  • Loading branch information
jecisc authored Oct 11, 2023
2 parents 84d2897 + a3c01e9 commit 1101d08
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 32 deletions.
19 changes: 0 additions & 19 deletions src/Microdown-Tests/MicFormatBlockTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -200,22 +200,3 @@ MicFormatBlockTest >> testPrintingItalic [
bold := (self parser parse: '_a b_') children first children first.
self assert: bold printString equals: 'ItalicFormat(Text(a b))'
]

{ #category : 'tests' }
MicFormatBlockTest >> testProperties [

self assert: self subject properties isNotNil.
self subject instVarNamed: 'properties' put: nil.

self subject propertyAt: #foo put: #bar.
self subject instVarNamed: 'properties' put: nil.

self subject propertyAt: #foo ifAbsent: [ nil ].
self subject instVarNamed: 'properties' put: nil.

self subject propertyAt: #foo ifAbsentPut: [ #bar ].
self subject instVarNamed: 'properties' put: nil.

self subject hasProperty: #foo.
self subject instVarNamed: 'properties' put: nil
]
6 changes: 0 additions & 6 deletions src/Microdown/MicAnnotationBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,6 @@ MicAnnotationBlock >> arguments: anArguments [
arguments := anArguments
]

{ #category : 'visiting' }
MicAnnotationBlock >> closeMe [


]

{ #category : 'accessing' }
MicAnnotationBlock >> closingDelimiter [

Expand Down
6 changes: 0 additions & 6 deletions src/Microdown/MicMathBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ MicMathBlock >> accept: aVisitor [
^ aVisitor visitMath: self
]

{ #category : 'accessing' }
MicMathBlock >> arguments [

^ arguments
]

{ #category : 'handle' }
MicMathBlock >> extractFirstLineFrom: aLine [

Expand Down
2 changes: 1 addition & 1 deletion src/Microdown/MicSameStartStopMarkupBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ MicSameStartStopMarkupBlock >> caption [
^ String streamContents: [:s | self captionElements do: [ :each | s nextPutAll: each substring ] ]
]

{ #category : 'accessing-delegated' }
{ #category : 'accessing - delegated' }
MicSameStartStopMarkupBlock >> caption: aString [

arguments at: #caption put: (MicInlineParser new parse: aString)
Expand Down

0 comments on commit 1101d08

Please sign in to comment.