Index: third_party/protobuf/objectivec/GPBCodedOutputStream.m |
diff --git a/third_party/protobuf/objectivec/GPBCodedOutputStream.m b/third_party/protobuf/objectivec/GPBCodedOutputStream.m |
index 70142e6fc040a3d2643b7af1b5d5db3bdf9647f7..fd9ed66ca23b494622c65d64670c2657f1cc0d76 100644 |
--- a/third_party/protobuf/objectivec/GPBCodedOutputStream.m |
+++ b/third_party/protobuf/objectivec/GPBCodedOutputStream.m |
@@ -28,7 +28,7 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-#import "GPBCodedOutputStream.h" |
+#import "GPBCodedOutputStream_PackagePrivate.h" |
#import <mach/vm_param.h> |
@@ -178,12 +178,6 @@ static void GPBWriteRawLittleEndian64(GPBOutputBufferState *state, |
return [self initWithOutputStream:nil data:data]; |
} |
-- (instancetype)initWithOutputStream:(NSOutputStream *)output |
- bufferSize:(size_t)bufferSize { |
- NSMutableData *data = [NSMutableData dataWithLength:bufferSize]; |
- return [self initWithOutputStream:output data:data]; |
-} |
- |
// This initializer isn't exposed, but it is the designated initializer. |
// Setting OutputStream and NSData is to control the buffering behavior/size |
// of the work, but that is more obvious via the bufferSize: version. |
@@ -199,15 +193,10 @@ static void GPBWriteRawLittleEndian64(GPBOutputBufferState *state, |
return self; |
} |
-+ (instancetype)streamWithOutputStream:(NSOutputStream *)output |
- bufferSize:(size_t)bufferSize { |
- return [[[self alloc] initWithOutputStream:output |
- bufferSize:bufferSize] autorelease]; |
-} |
- |
+ (instancetype)streamWithOutputStream:(NSOutputStream *)output { |
+ NSMutableData *data = [NSMutableData dataWithLength:PAGE_SIZE]; |
return [[[self alloc] initWithOutputStream:output |
- bufferSize:PAGE_SIZE] autorelease]; |
+ data:data] autorelease]; |
} |
+ (instancetype)streamWithData:(NSMutableData *)data { |