Skip to content

Commit ce47c91

Browse files
committed
middle: typeck: infer: lub: remove dead code
1 parent 1a98ec8 commit ce47c91

File tree

1 file changed

+0
-4
lines changed
  • src/librustc/middle/typeck/infer

1 file changed

+0
-4
lines changed

src/librustc/middle/typeck/infer/lub.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ pub struct Lub<'f>(CombineFields<'f>); // least-upper-bound: common supertype
3131

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

4036
impl<'f> Combine for Lub<'f> {

0 commit comments

Comments
 (0)