@@ -7,7 +7,7 @@ use crate::io::prelude::*;
7
7
8
8
use crate :: cell:: { Cell , RefCell } ;
9
9
use crate :: fmt;
10
- use crate :: io:: { self , BufReader , IoSlice , IoSliceMut , LineWriter , Lines , Split } ;
10
+ use crate :: io:: { self , BufReader , IoSlice , IoSliceMut , LineWriter , Lines } ;
11
11
use crate :: lazy:: SyncOnceCell ;
12
12
use crate :: pin:: Pin ;
13
13
use crate :: sync:: atomic:: { AtomicBool , Ordering } ;
@@ -465,29 +465,6 @@ impl Stdin {
465
465
pub fn lines ( self ) -> Lines < StdinLock < ' static > > {
466
466
self . into_locked ( ) . lines ( )
467
467
}
468
-
469
- /// Consumes this handle and returns an iterator over input bytes,
470
- /// split at the specified byte value.
471
- ///
472
- /// For detailed semantics of this method, see the documentation on
473
- /// [`BufRead::split`].
474
- ///
475
- /// # Examples
476
- ///
477
- /// ```no_run
478
- /// #![feature(stdin_forwarders)]
479
- /// use std::io;
480
- ///
481
- /// let splits = io::stdin().split(b'-');
482
- /// for split in splits {
483
- /// println!("got a chunk: {}", String::from_utf8_lossy(&split.unwrap()));
484
- /// }
485
- /// ```
486
- #[ must_use = "`self` will be dropped if the result is not used" ]
487
- #[ unstable( feature = "stdin_forwarders" , issue = "87096" ) ]
488
- pub fn split ( self , byte : u8 ) -> Split < StdinLock < ' static > > {
489
- self . into_locked ( ) . split ( byte)
490
- }
491
468
}
492
469
493
470
#[ stable( feature = "std_debug" , since = "1.16.0" ) ]
0 commit comments