diff options
| author | Tom Jakubowski <tom@crystae.net> | 2015-01-14 06:32:43 -0800 |
|---|---|---|
| committer | Tom Jakubowski <tom@crystae.net> | 2015-01-17 22:54:23 -0800 |
| commit | d47a11353d2c254d4644b998b81779887e525bee (patch) | |
| tree | 2022f33af3f6a20e8fde809fcacce6672ea4026f | |
| parent | 7b4c50821a62bd6cd0df6810cd07db363bd003ac (diff) | |
| download | rust-d47a11353d2c254d4644b998b81779887e525bee.tar.gz rust-d47a11353d2c254d4644b998b81779887e525bee.zip | |
Remove some dead code from rustc::middle::ty
| -rw-r--r-- | src/librustc/middle/ty.rs | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/librustc/middle/ty.rs b/src/librustc/middle/ty.rs index c72fbc74565..e3b57b78190 100644 --- a/src/librustc/middle/ty.rs +++ b/src/librustc/middle/ty.rs @@ -70,7 +70,7 @@ use util::nodemap::{FnvHashMap}; use arena::TypedArena; use std::borrow::{BorrowFrom, Cow}; use std::cell::{Cell, RefCell}; -use std::cmp::{self, Ordering}; +use std::cmp; use std::fmt::{self, Show}; use std::hash::{Hash, Writer, SipHasher, Hasher}; use std::mem; @@ -5096,25 +5096,6 @@ pub fn associated_type_parameter_index(cx: &ctxt, cx.sess.bug("couldn't find associated type parameter index") } -#[derive(Copy, PartialEq, Eq)] -pub struct AssociatedTypeInfo { - pub def_id: ast::DefId, - pub index: uint, - pub name: ast::Name, -} - -impl PartialOrd for AssociatedTypeInfo { - fn partial_cmp(&self, other: &AssociatedTypeInfo) -> Option<Ordering> { - Some(self.index.cmp(&other.index)) - } -} - -impl Ord for AssociatedTypeInfo { - fn cmp(&self, other: &AssociatedTypeInfo) -> Ordering { - self.index.cmp(&other.index) - } -} - pub fn trait_item_def_ids(cx: &ctxt, id: ast::DefId) -> Rc<Vec<ImplOrTraitItemId>> { lookup_locally_or_in_crate_store("trait_item_def_ids", |
