Remove {Dictionary,Set,UnsafeMutableBufferPointer,UnsafeBufferPointer}.count

These APIs are redundant with APIs that come from protocol extensions.

Swift SVN r28248
This commit is contained in:
Dmitri Hrybenko
2015-05-07 00:30:43 +00:00
parent 58601fafc8
commit 8ac6c7cf8f
21 changed files with 315 additions and 316 deletions

View File

@@ -72,7 +72,7 @@ func nsEncode<CodeUnit>(
inout _ buffer: [CodeUnit],
inout _ used: Int
) {
_precondition(buffer.count >= 4, "buffer is not large enough")
_precondition(buffer.count() >= 4, "buffer is not large enough")
let s = NSString(
bytes: &c,
@@ -81,7 +81,7 @@ func nsEncode<CodeUnit>(
s.getBytes(
&buffer,
maxLength: buffer.count,
maxLength: buffer.count(),
usedLength: &used,
encoding: encoding,
options: NSStringEncodingConversionOptions(0),