Skip to content

Commit 8d87cbe

Browse files
committed
Remove unused DebuggerStackFrame type
1 parent d7726bc commit 8d87cbe

File tree

2 files changed

+0
-111
lines changed

2 files changed

+0
-111
lines changed

Sources/WasmKit/Execution/Debugger.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@
5959
/// was not compiled yet in lazy compilation mode).
6060
private let functionAddresses: [(address: Int, instanceFunctionIndex: Int)]
6161

62-
/// Cache for stack frames that use debugger-friendly memory layout.
63-
private var stackFrame = DebuggerStackFrame()
64-
6562
/// Initializes a new debugger state instance.
6663
/// - Parameters:
6764
/// - module: Wasm module to instantiate.
@@ -259,14 +256,6 @@
259256
try self.run()
260257
}
261258

262-
package mutating func packedStackFrame<T>(frameIndex: UInt, reader: (RawSpan, DebuggerStackFrame.Layout) -> T) throws -> T {
263-
guard case .stoppedAtBreakpoint(let breakpoint) = self.state else {
264-
throw Error.notStoppedAtBreakpoint
265-
}
266-
267-
return try self.stackFrame.withFrames(sp: breakpoint.iseq.sp, frameIndex: frameIndex, store: self.store, reader: reader)
268-
}
269-
270259
package func getLocal(frameIndex: UInt, localIndex: UInt) throws -> UInt64 {
271260
guard case .stoppedAtBreakpoint(let breakpoint) = self.state else {
272261
throw Error.notStoppedAtBreakpoint

Sources/WasmKit/Execution/DebuggerStackFrame.swift

Lines changed: 0 additions & 100 deletions
This file was deleted.

0 commit comments

Comments
 (0)