Skip to content

Commit 59981c2

Browse files
committed
Remove dead code, update outdated comment, fix spelling
Signed-off-by: Stefan Marr <git@stefan-marr.de>
1 parent 5373314 commit 59981c2

File tree

5 files changed

+4
-8
lines changed

5 files changed

+4
-8
lines changed

src/primitives/Method.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static vm_oop_t mSignature(vm_oop_t rcvr) {
2020
}
2121

2222
static void mInvokeOnWith(VMFrame* frame) {
23-
// REM: this is a clone with _Primitive::InvokeOn_With_
23+
// REM: this is a clone with _Primitive pInvokeOnWith
2424
auto* args = static_cast<VMArray*>(frame->Pop());
2525
auto* rcvr = frame->Pop();
2626
auto* mthd = static_cast<VMMethod*>(frame->Pop());

src/primitives/Method.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@
66
class _Method : public PrimitiveContainer {
77
public:
88
_Method();
9-
10-
void InvokeOn_With_(VMFrame*);
119
};

src/primitives/Primitive.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static vm_oop_t pSignature(vm_oop_t rcvr) {
1818
}
1919

2020
static void pInvokeOnWith(VMFrame* frame) {
21-
// REM: this is a clone with _Primitive::InvokeOn_With_
21+
// REM: this is a clone with _Method mInvokeOnWith
2222
auto* args = static_cast<VMArray*>(frame->Pop());
2323
auto* rcvr = frame->Pop();
2424
auto* mthd = static_cast<VMInvokable*>(frame->Pop());

src/primitives/Primitive.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@
66
class _Primitive : public PrimitiveContainer {
77
public:
88
_Primitive();
9-
10-
void InvokeOn_With_(VMFrame*);
119
};

src/vmobjects/VMFrame.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ class VMFrame : public AbstractVMObject {
5252
arguments((gc_oop_t*)&(stack_ptr) + 1),
5353
locals(arguments + method->GetNumberOfArguments()),
5454
stack_ptr(locals + method->GetNumberOfLocals() - 1) {
55-
// initilize all other fields. Don't need to initalize arguments,
56-
// because they iwll be copied in still
55+
// initialize all other fields. Don't need to initialize arguments,
56+
// because they will be copied in still
5757
// --> until end of Frame
5858
auto* end = (gc_oop_t*)SHIFTED_PTR(this, totalObjectSize);
5959
size_t i = 0;

0 commit comments

Comments
 (0)