Removed unused impls for LuaQuery and LuaResponse
@@ -54,30 +54,6 @@ impl Debug for LuaQuery {
}
}
-unsafe impl Send for LuaQuery { }
-unsafe impl Sync for LuaQuery { }
-
-impl PartialEq for LuaQuery {
- fn eq(&self, other: &LuaQuery) -> bool {
- match (self, other) {
- (&LuaQuery::Ping, &LuaQuery::Ping) => true,
- (&LuaQuery::Terminate, &LuaQuery::Terminate) => true,
- (&LuaQuery::Restart, &LuaQuery::Restart) => true,
-
- (&LuaQuery::Execute(ref s1), &LuaQuery::Execute(ref s2)) =>
- s1 == s2,
- (&LuaQuery::ExecFile(ref s1), &LuaQuery::ExecFile(ref s2)) =>
- s1 == s2,
- (&LuaQuery::ExecRust(_), &LuaQuery::ExecRust(_)) => true,
- (&LuaQuery::HandleKey(ref p1), &LuaQuery::HandleKey(ref p2)) =>
- p1 == p2,
- _ => false
- }
- }
-}
-
-impl Eq for LuaQuery { }
-
/// Messages received from lua thread
#[allow(dead_code)]
pub enum LuaResponse {
@@ -110,26 +86,6 @@ impl LuaResponse {
}
}
-impl PartialEq for LuaResponse {
- fn eq(&self, other: &LuaResponse) -> bool {
- match (self, other) {
- (&LuaResponse::InvalidName, &LuaResponse::InvalidName) => true,
- (&LuaResponse::Pong, &LuaResponse::Pong) => true,
-
- (&LuaResponse::Variable(ref v1), &LuaResponse::Variable(ref v2)) =>
- // TODO FIXME
- false,//v1 == v2,
- (&LuaResponse::Error(ref e1), &LuaResponse::Error(ref e2)) =>
- format!("{:?}", e1) == format!("{:?}", e2),
- (&LuaResponse::Function(_), &LuaResponse::Function(_)) => true,
-
- _ => false
- }
- }
-}
-
-unsafe impl Send for LuaResponse { }
-unsafe impl Sync for LuaResponse { }
impl Debug for LuaResponse {
fn fmt(&self, f: &mut Formatter) -> FmtResult {
