Index: sandbox/linux/seccomp-bpf/codegen.cc |
diff --git a/sandbox/linux/seccomp-bpf/codegen.cc b/sandbox/linux/seccomp-bpf/codegen.cc |
index 47ba39713791e46feee1e1cc69ec511b1f2b2ffa..aa47155fce7a7178c4ed1948ccf71dd0a5b98884 100644 |
--- a/sandbox/linux/seccomp-bpf/codegen.cc |
+++ b/sandbox/linux/seccomp-bpf/codegen.cc |
@@ -172,17 +172,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, |