Skip to content

Commit

Permalink
Remove some dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmacnak committed May 4, 2024
1 parent 79d19f5 commit 7eae86f
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 25 deletions.
10 changes: 1 addition & 9 deletions src/Browsing.ns
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ lateNightWisdom = (
|
now = DateTime nowLocal.
hour = now hour - 1 \\ 12 + 1. (* 0 -> 12 *)
minute = now minutes.
minute = now minute.
time = hour asString, (minute < 10 ifTrue: [':0'] ifFalse: [':']), minute asString.
|
^BitOfWisdom text: 'It''s ', time, '. Go get some rest!'
Expand Down Expand Up @@ -1459,10 +1459,6 @@ public addNewItemTemplate = (
[:template | prefixes remove: template]).
prefixes refresh.
)
public deleteClassInPresenter: presenter <Presenter> ifSuccess: successResponse <[]> ifFailure: failureResponse <[]> = (
subject deleteClassWithSubject: presenter subject.
successResponse value
)
elementPresenterClass ^ <ProgrammingPresenter class> = (
^NestedClassPresenter
)
Expand Down Expand Up @@ -2001,10 +1997,6 @@ createNewTransientSlotFromTemplate: template <DefinitionTemplate> = (
ifFailure:
[:message | template editor showMessage: message]
)
public deleteTransientSlotInPresenter: presenter <Presenter> ifSuccess: successResponse <[]> ifFailure: failureResponse <[]> = (
subject deleteTransientSlotWithSubject: presenter subject.
successResponse value
)
elementPresenterClass ^ <ProgrammingPresenter class> = (
^TransientSlotPresenter
)
Expand Down
7 changes: 0 additions & 7 deletions src/CombinatorialParsing.ns
Original file line number Diff line number Diff line change
Expand Up @@ -321,13 +321,6 @@ finalBindForwardReferences = (
v bind: p.
p name: k (* a good place to name the productions *)]]
)
public nameProductions = (
selfMirror getClass slots do:
[:slot <SlotMirror> |
| parser |
parser:: (selfMirror getSlot: slot simpleName) reflectee.
parser isKindOfCombinatorialParser ifTrue: [parser name: slot name]].
)
setupForwardReferences = (
(* Go through all non-nil instance variables and set them to a fresh forward reference. If these do not correspond to productions, they will be overridden by the subclass. *)
selfMirror getClass slots do:
Expand Down
2 changes: 1 addition & 1 deletion src/MinitestUI.ns
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ classDeclarationMirror = (
^testCase environment classDeclarationMirror
)
public className = (
^classDeclarationMirror qualifiedName
^classDeclarationMirror name
)
public exception = (
(* If the model is a test error, return the exception associated with the result. Otherwise return nil. *)
Expand Down
1 change: 0 additions & 1 deletion src/WorkspaceManager.ns
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ public class Workspace = (
public workspaceText
|) (
public actors = ( ^platform actors )
public aliens = ( ^platform aliens )
public collections = ( ^platform collections )
protected doesNotUnderstand: message = (
^Root
Expand Down
6 changes: 0 additions & 6 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
request.send();
},
print: function(text) {
if (arguments.length > 1) {
text = Array.prototype.slice.call(arguments).join(" ");
}
console.log(text);

var pre = document.createElement("pre");
Expand All @@ -50,9 +47,6 @@
window.scrollTo(0, document.body.scrollHeight);
},
printErr: function(text) {
if (arguments.length > 1) {
text = Array.prototype.slice.call(arguments).join(" ");
}
console.error(text);

var pre = document.createElement("pre");
Expand Down

0 comments on commit 7eae86f

Please sign in to comment.