Skip to content

Commit

Permalink
Removed Encode impl for Id.
Browse files Browse the repository at this point in the history
  • Loading branch information
SSheldon committed Mar 5, 2015
1 parent 6107a49 commit f4d3044
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions core/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::mem;
use std::ops::{Deref, DerefMut};
use std::ptr;

use {Encode, EncodePtr, Message, ToMessage};
use {Message, ToMessage};
use runtime::Object;

#[link(name = "objc", kind = "dylib")]
Expand Down Expand Up @@ -88,12 +88,6 @@ impl<T> Id<T, Owned> where T: Message {
}
}

impl<T, O> Encode for Id<T, O> where T: EncodePtr {
fn code() -> &'static str {
T::ptr_code()
}
}

impl<T, O> ToMessage for Id<T, O> where T: Message {
fn as_id_ptr(&self) -> *mut Object {
self.ptr as *mut Object
Expand Down

0 comments on commit f4d3044

Please sign in to comment.