mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: eliminate redundant implementations of 'generate()'
Swift SVN r29617
This commit is contained in:
@@ -228,13 +228,6 @@ extension String.CharacterView : CollectionType {
|
||||
return Character(String(unicodeScalars[i._base..<i._endBase]))
|
||||
}
|
||||
|
||||
/// Return a *generator* over the `Character`s.
|
||||
///
|
||||
/// - Complexity: O(1).
|
||||
public func generate() -> IndexingGenerator<String.CharacterView> {
|
||||
return IndexingGenerator(self)
|
||||
}
|
||||
|
||||
internal struct _IndexMirror : MirrorType {
|
||||
var _value: Index
|
||||
|
||||
|
||||
Reference in New Issue
Block a user