Skip to content

Commit 0239a06

Browse files
committed
rm unused visit_str method from TyVisitor
1 parent 8d56158 commit 0239a06

File tree

5 files changed

+2
-10
lines changed

5 files changed

+2
-10
lines changed

src/libstd/reflect.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ impl<V:TyVisitor + MovePtr> TyVisitor for MovePtrAdaptor<V> {
197197
true
198198
}
199199

200+
#[cfg(stage0)]
200201
fn visit_str(&self) -> bool {
201202
self.align_to::<~str>();
202203
if ! self.inner.visit_str() { return false; }

src/libstd/repr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ impl TyVisitor for ReprVisitor {
269269
}
270270

271271
// Type no longer exists, vestigial function.
272+
#[cfg(stage0)]
272273
fn visit_str(&self) -> bool { fail!(); }
273274

274275
fn visit_estr_box(&self) -> bool {

src/libstd/unstable/intrinsics.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ pub trait TyVisitor {
8282
fn visit_f64(&self) -> bool;
8383

8484
fn visit_char(&self) -> bool;
85-
fn visit_str(&self) -> bool;
8685

8786
fn visit_estr_box(&self) -> bool;
8887
fn visit_estr_uniq(&self) -> bool;

src/test/run-pass/reflect-visit-data.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,6 @@ impl<V:TyVisitor + movable_ptr> TyVisitor for ptr_visit_adaptor<V> {
181181
true
182182
}
183183

184-
fn visit_str(&self) -> bool {
185-
self.align_to::<~str>();
186-
if ! self.inner.visit_str() { return false; }
187-
self.bump_past::<~str>();
188-
true
189-
}
190-
191184
fn visit_estr_box(&self) -> bool {
192185
self.align_to::<@str>();
193186
if ! self.inner.visit_estr_box() { return false; }
@@ -556,7 +549,6 @@ impl TyVisitor for my_visitor {
556549
fn visit_f64(&self) -> bool { true }
557550

558551
fn visit_char(&self) -> bool { true }
559-
fn visit_str(&self) -> bool { true }
560552

561553
fn visit_estr_box(&self) -> bool { true }
562554
fn visit_estr_uniq(&self) -> bool { true }

src/test/run-pass/reflect-visit-type.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ impl TyVisitor for MyVisitor {
5959
fn visit_f64(&self) -> bool { true }
6060

6161
fn visit_char(&self) -> bool { true }
62-
fn visit_str(&self) -> bool { true }
6362

6463
fn visit_estr_box(&self) -> bool { true }
6564
fn visit_estr_uniq(&self) -> bool { true }

0 commit comments

Comments
 (0)