Skip to content

Commit 27e7b24

Browse files
committed
Remove unused functions
1 parent d72a4a8 commit 27e7b24

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Runtime/src/index.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -155,26 +155,11 @@ export class SwiftRuntime {
155155
}
156156
}
157157

158-
const readUInt32 = (ptr: pointer) => {
159-
const uint32Memory = new Uint32Array(memory().buffer, ptr, 1);
160-
return uint32Memory[0];
161-
}
162-
163-
const readFloat64 = (ptr: pointer) => {
164-
const dataView = new DataView(memory().buffer);
165-
return dataView.getFloat64(ptr, true);
166-
}
167-
168158
const writeUint32 = (ptr: pointer, value: number) => {
169159
const uint32Memory = new Uint32Array(memory().buffer, ptr);
170160
uint32Memory[0] = (value & 0xffffffff);
171161
}
172162

173-
const writeFloat64 = (ptr: pointer, value: number) => {
174-
const dataView = new DataView(memory().buffer);
175-
dataView.setFloat64(ptr, value, true);
176-
}
177-
178163
const decodeValue = (dataView: DataView) => {
179164
const kind = dataView.getUint32(0, true);
180165
const payload1_ptr = Uint32Array.BYTES_PER_ELEMENT

0 commit comments

Comments
 (0)