Skip to content

Commit 92dd0be

Browse files
Remove unused code
1 parent 54c146e commit 92dd0be

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Runtime/src/index.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,7 @@ export class SwiftRuntime {
398398
writeUint32(result_obj, this.heap.retain(result));
399399
},
400400
swjs_instanceof: (
401-
obj_ref: ref, constructor_ref: ref,
402-
result_ptr: pointer
401+
obj_ref: ref, constructor_ref: ref
403402
) => {
404403
const obj = this.heap.referenceHeap(obj_ref)
405404
const constructor = this.heap.referenceHeap(constructor_ref)
@@ -415,9 +414,6 @@ export class SwiftRuntime {
415414
// Call `.slice()` to copy the memory
416415
writeUint32(result_obj, this.heap.retain(array.slice()));
417416
},
418-
swjs_retain: (ref: ref) => {
419-
this.heap.retain(this.heap.referenceHeap(ref))
420-
},
421417
swjs_release: (ref: ref) => {
422418
this.heap.release(ref)
423419
}

0 commit comments

Comments
 (0)