Remove old error code which is unused

This commit is contained in:
Matthias Beyer 2016-05-27 10:13:03 +02:00
parent 183c46a7dd
commit cb87b4b5d8

View file

@ -6,16 +6,3 @@ generate_error_types!(HookError, HookErrorKind,
AccessTypeViolation => "Hook access type violation"
);
pub trait IntoHookError {
fn into_hookerror(self) -> HookError;
fn into_hookerror_with_cause(self, cause: Box<Error>) -> HookError;
}
impl Into<HookError> for (HookErrorKind, Box<Error>) {
fn into(self) -> HookError {
HookError::new(self.0, Some(self.1))
}
}