Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trivial cleanup: Duplicated methods and category #667

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading