File tree 1 file changed +0
-15
lines changed
1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -46,21 +46,6 @@ public func _autorelease(_ x: AnyObject) {
46
46
}
47
47
#endif
48
48
49
- /// Invoke `body` with an allocated, but uninitialized memory suitable for a
50
- /// `String` value.
51
- ///
52
- /// This function is primarily useful to call various runtime functions
53
- /// written in C++.
54
- internal func _withUninitializedString< R> (
55
- _ body: ( UnsafeMutablePointer < String > ) -> R
56
- ) -> ( R , String ) {
57
- let stringPtr = UnsafeMutablePointer< String> . allocate( capacity: 1 )
58
- let bodyResult = body ( stringPtr)
59
- let stringResult = stringPtr. move ( )
60
- stringPtr. deallocate ( )
61
- return ( bodyResult, stringResult)
62
- }
63
-
64
49
// FIXME(ABI)#51 : this API should allow controlling different kinds of
65
50
// qualification separately: qualification with module names and qualification
66
51
// with type names that we are nested in.
You can’t perform that action at this time.
0 commit comments