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

Remove some dead code #719

Merged
merged 1 commit into from
Feb 1, 2024
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
35 changes: 12 additions & 23 deletions src/Moose-SmalltalkImporter/CompiledMethod.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,21 @@ Extension { #name : #CompiledMethod }

{ #category : #'*Moose-SmalltalkImporter' }
CompiledMethod >> mooseName [
^ self mooseNameWithScope: false
]

{ #category : #'*Moose-SmalltalkImporter' }
CompiledMethod >> mooseNameWithScope: aboolean [

| string |
string := String streamContents: [:str |
str nextPutAll: self methodClass mooseName.
str nextPut: $..
str nextPutAll: self selector.
self signatureFromSmalltalkSelectorOn: str].
^ string asSymbol
^ String streamContents: [ :str |
str
nextPutAll: self methodClass mooseName;
nextPut: $.;
nextPutAll: self selector.
self signatureFromSmalltalkSelectorOn: str ]
]

{ #category : #'*Moose-SmalltalkImporter' }
CompiledMethod >> signature [

| ws |
ws := WriteStream on: (String new: 150).
ws nextPutAll: self selector.
self signatureFromSmalltalkSelectorOn: ws.
^ws contents asSymbol
^ (String streamContents: [ :aStream |
aStream nextPutAll: self selector.
self signatureFromSmalltalkSelectorOn: aStream ]) asSymbol
]

{ #category : #'*Moose-SmalltalkImporter' }
Expand All @@ -34,10 +26,7 @@ CompiledMethod >> signatureFromSmalltalkSelectorOn: aStream [
sym := self selector.
numArgs := sym numArgs.
aStream nextPut: $(.
1
to: numArgs
do: [:inx | aStream nextPutAll: 'Object,'].
numArgs > 0 ifTrue: [aStream skip: -1 "remove last space"].
aStream nextPut: $).

1 to: numArgs do: [ :inx | aStream nextPutAll: 'Object,' ].
numArgs > 0 ifTrue: [ aStream skip: -1 "remove last space" ].
aStream nextPut: $)
]
13 changes: 0 additions & 13 deletions src/Moose-SmalltalkImporter/RPackage.extension.st

This file was deleted.

Loading