Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
middle: typeck: infer: lub: remove dead code
  • Loading branch information
emberian committed Apr 2, 2014
1 parent 1a98ec8 commit ce47c91
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/librustc/middle/typeck/infer/lub.rs
Expand Up @@ -31,10 +31,6 @@ pub struct Lub<'f>(CombineFields<'f>); // least-upper-bound: common supertype

impl<'f> Lub<'f> {
pub fn get_ref<'a>(&'a self) -> &'a CombineFields<'f> { let Lub(ref v) = *self; v }
pub fn bot_ty(&self, b: ty::t) -> cres<ty::t> { Ok(b) }
pub fn ty_bot(&self, b: ty::t) -> cres<ty::t> {
self.bot_ty(b) // commutative
}
}

impl<'f> Combine for Lub<'f> {
Expand Down

0 comments on commit ce47c91

Please sign in to comment.