diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-06-10 18:10:12 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-06-17 09:07:16 -0700 |
| commit | a05ed9936d97414efdfd460f1e25505c366689d3 (patch) | |
| tree | 6c2278bb6ef3bd2416c715a331fb4f1808544bbb /src/libstd/sys | |
| parent | f55c366a8ac33307859ae6190d2788270a885f90 (diff) | |
| download | rust-a05ed9936d97414efdfd460f1e25505c366689d3.tar.gz rust-a05ed9936d97414efdfd460f1e25505c366689d3.zip | |
std: Remove two internal `str_internals` functions
These were just exposed to be used elsewhere at some point, but neither is currently being used so just make them private again.
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/common/wtf8.rs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/libstd/sys/common/wtf8.rs b/src/libstd/sys/common/wtf8.rs index b2dc01e3ccb..428c8560d88 100644 --- a/src/libstd/sys/common/wtf8.rs +++ b/src/libstd/sys/common/wtf8.rs @@ -480,31 +480,6 @@ impl Wtf8 { } } - /// Returns the code point at `position`. - /// - /// # Panics - /// - /// Panics if `position` is not at a code point boundary, - /// or is beyond the end of the string. - #[inline] - pub fn code_point_at(&self, position: usize) -> CodePoint { - let (code_point, _) = self.code_point_range_at(position); - code_point - } - - /// Returns the code point at `position` - /// and the position of the next code point. - /// - /// # Panics - /// - /// Panics if `position` is not at a code point boundary, - /// or is beyond the end of the string. - #[inline] - pub fn code_point_range_at(&self, position: usize) -> (CodePoint, usize) { - let (c, n) = char_range_at_raw(&self.bytes, position); - (CodePoint { value: c }, n) - } - /// Returns an iterator for the string’s code points. #[inline] pub fn code_points(&self) -> Wtf8CodePoints { |
