Skip to content

Commit 9b9a0cc

Browse files
Remove unused Equatable conformance from InstructionSequence
1 parent a543346 commit 9b9a0cc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Sources/WasmKit/Execution/Function.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,14 @@ struct WasmFunctionEntity {
203203
typealias InternalUncompiledCode = EntityHandle<Code>
204204

205205
/// A compiled instruction sequence.
206-
struct InstructionSequence: Equatable {
206+
struct InstructionSequence {
207207
let instructions: UnsafeMutableBufferPointer<CodeSlot>
208208
/// The maximum height of the value stack during execution of this function.
209209
/// This height does not count the locals.
210210
let maxStackHeight: Int
211211

212+
/// The constant value pool associated with this instruction sequence.
213+
/// See ``FrameHeaderLayout`` for how they are laid out on the stack.
212214
let constants: UnsafeBufferPointer<UntypedValue>
213215

214216
init(instructions: UnsafeMutableBufferPointer<CodeSlot>, maxStackHeight: Int, constants: UnsafeBufferPointer<UntypedValue>) {
@@ -220,10 +222,6 @@ struct InstructionSequence: Equatable {
220222
var baseAddress: UnsafeMutablePointer<CodeSlot> {
221223
self.instructions.baseAddress!
222224
}
223-
224-
static func == (lhs: InstructionSequence, rhs: InstructionSequence) -> Bool {
225-
lhs.instructions.baseAddress == rhs.instructions.baseAddress
226-
}
227225
}
228226

229227
enum CodeBody {

0 commit comments

Comments
 (0)