Index: sandbox/linux/seccomp-bpf/codegen.cc |
diff --git a/sandbox/linux/seccomp-bpf/codegen.cc b/sandbox/linux/seccomp-bpf/codegen.cc |
index c90bffcad30fd02f24bb74fc80e609982a5255d0..63e500f23f99c30626dacbc3fd00fe1faac1e7df 100644 |
--- a/sandbox/linux/seccomp-bpf/codegen.cc |
+++ b/sandbox/linux/seccomp-bpf/codegen.cc |
@@ -165,17 +165,6 @@ Instruction* CodeGen::MakeInstruction(uint16_t code, |
} |
} |
-Instruction* CodeGen::MakeInstruction(uint16_t code, const ErrorCode& err) { |
- if (BPF_CLASS(code) != BPF_RET) { |
- SANDBOX_DIE("ErrorCodes can only be used in return expressions"); |
- } |
- if (err.error_type_ != ErrorCode::ET_SIMPLE && |
- err.error_type_ != ErrorCode::ET_TRAP) { |
- SANDBOX_DIE("ErrorCode is not suitable for returning from a BPF program"); |
- } |
- return MakeInstruction(code, err.err_); |
-} |
- |
Instruction* CodeGen::MakeInstruction(uint16_t code, |
uint32_t k, |
Instruction* jt, |