reflect: rm unused visit_{var,var_integral,constr}
This commit is contained in:
parent
ac4f0df120
commit
803f941867
@ -460,16 +460,6 @@ impl<V:TyVisitor + MovePtr> TyVisitor for MovePtrAdaptor<V> {
|
||||
true
|
||||
}
|
||||
|
||||
fn visit_var(&self) -> bool {
|
||||
if ! self.inner.visit_var() { return false; }
|
||||
true
|
||||
}
|
||||
|
||||
fn visit_var_integral(&self) -> bool {
|
||||
if ! self.inner.visit_var_integral() { return false; }
|
||||
true
|
||||
}
|
||||
|
||||
fn visit_param(&self, i: uint) -> bool {
|
||||
if ! self.inner.visit_param(i) { return false; }
|
||||
true
|
||||
@ -494,11 +484,6 @@ impl<V:TyVisitor + MovePtr> TyVisitor for MovePtrAdaptor<V> {
|
||||
true
|
||||
}
|
||||
|
||||
fn visit_constr(&self, inner: *TyDesc) -> bool {
|
||||
if ! self.inner.visit_constr(inner) { return false; }
|
||||
true
|
||||
}
|
||||
|
||||
fn visit_closure_ptr(&self, ck: uint) -> bool {
|
||||
self.align_to::<@fn()>();
|
||||
if ! self.inner.visit_closure_ptr(ck) { return false; }
|
||||
|
@ -563,8 +563,6 @@ impl TyVisitor for ReprVisitor {
|
||||
|
||||
|
||||
fn visit_trait(&self) -> bool { true }
|
||||
fn visit_var(&self) -> bool { true }
|
||||
fn visit_var_integral(&self) -> bool { true }
|
||||
fn visit_param(&self, _i: uint) -> bool { true }
|
||||
fn visit_self(&self) -> bool { true }
|
||||
fn visit_type(&self) -> bool { true }
|
||||
@ -577,9 +575,6 @@ impl TyVisitor for ReprVisitor {
|
||||
}
|
||||
}
|
||||
|
||||
// Type no longer exists, vestigial function.
|
||||
fn visit_constr(&self, _inner: *TyDesc) -> bool { fail!(); }
|
||||
|
||||
fn visit_closure_ptr(&self, _ck: uint) -> bool { true }
|
||||
}
|
||||
|
||||
|
@ -161,13 +161,10 @@ pub trait TyVisitor {
|
||||
n_inputs: uint, retstyle: uint) -> bool;
|
||||
|
||||
fn visit_trait(&self) -> bool;
|
||||
fn visit_var(&self) -> bool;
|
||||
fn visit_var_integral(&self) -> bool;
|
||||
fn visit_param(&self, i: uint) -> bool;
|
||||
fn visit_self(&self) -> bool;
|
||||
fn visit_type(&self) -> bool;
|
||||
fn visit_opaque_box(&self) -> bool;
|
||||
fn visit_constr(&self, inner: *TyDesc) -> bool;
|
||||
fn visit_closure_ptr(&self, ck: uint) -> bool;
|
||||
}
|
||||
|
||||
|
@ -436,16 +436,6 @@ impl<V:TyVisitor + movable_ptr> TyVisitor for ptr_visit_adaptor<V> {
|
||||
true
|
||||
}
|
||||
|
||||
fn visit_var(&self) -> bool {
|
||||
if ! self.inner.visit_var() { return false; }
|
||||
true
|
||||
}
|
||||
|
||||
fn visit_var_integral(&self) -> bool {
|
||||
if ! self.inner.visit_var_integral() { return false; }
|
||||
true
|
||||
}
|
||||
|
||||
fn visit_param(&self, i: uint) -> bool {
|
||||
if ! self.inner.visit_param(i) { return false; }
|
||||
true
|
||||
@ -470,11 +460,6 @@ impl<V:TyVisitor + movable_ptr> TyVisitor for ptr_visit_adaptor<V> {
|
||||
true
|
||||
}
|
||||
|
||||
fn visit_constr(&self, inner: *TyDesc) -> bool {
|
||||
if ! self.inner.visit_constr(inner) { return false; }
|
||||
true
|
||||
}
|
||||
|
||||
fn visit_closure_ptr(&self, ck: uint) -> bool {
|
||||
self.align_to::<@fn()>();
|
||||
if ! self.inner.visit_closure_ptr(ck) { return false; }
|
||||
@ -633,13 +618,10 @@ impl TyVisitor for my_visitor {
|
||||
|
||||
|
||||
fn visit_trait(&self) -> bool { true }
|
||||
fn visit_var(&self) -> bool { true }
|
||||
fn visit_var_integral(&self) -> bool { true }
|
||||
fn visit_param(&self, _i: uint) -> bool { true }
|
||||
fn visit_self(&self) -> bool { true }
|
||||
fn visit_type(&self) -> bool { true }
|
||||
fn visit_opaque_box(&self) -> bool { true }
|
||||
fn visit_constr(&self, _inner: *TyDesc) -> bool { true }
|
||||
fn visit_closure_ptr(&self, _ck: uint) -> bool { true }
|
||||
}
|
||||
|
||||
|
@ -144,13 +144,10 @@ impl TyVisitor for MyVisitor {
|
||||
|
||||
|
||||
fn visit_trait(&self) -> bool { true }
|
||||
fn visit_var(&self) -> bool { true }
|
||||
fn visit_var_integral(&self) -> bool { true }
|
||||
fn visit_param(&self, _i: uint) -> bool { true }
|
||||
fn visit_self(&self) -> bool { true }
|
||||
fn visit_type(&self) -> bool { true }
|
||||
fn visit_opaque_box(&self) -> bool { true }
|
||||
fn visit_constr(&self, _inner: *TyDesc) -> bool { true }
|
||||
fn visit_closure_ptr(&self, _ck: uint) -> bool { true }
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user