Cleanup ZeroCopyInputStream and ZeroCopyOutputStream

- Expunge unnecessary forward declarations
- Delete move constructor and move assignment

PiperOrigin-RevId: 548711824
pull/13237/head
Hong Shin 1 year ago committed by Copybara-Service
parent b9db16f18a
commit a6083e672f
  1. 11
      src/google/protobuf/io/zero_copy_stream.h

@ -119,18 +119,17 @@ namespace google {
namespace protobuf {
namespace io {
// Defined in this file.
class ZeroCopyInputStream;
class ZeroCopyOutputStream;
// Abstract interface similar to an input stream but designed to minimize
// copying.
class PROTOBUF_EXPORT ZeroCopyInputStream {
public:
ZeroCopyInputStream() {}
ZeroCopyInputStream() = default;
virtual ~ZeroCopyInputStream() = default;
ZeroCopyInputStream(const ZeroCopyInputStream&) = delete;
ZeroCopyInputStream& operator=(const ZeroCopyInputStream&) = delete;
virtual ~ZeroCopyInputStream() {}
ZeroCopyInputStream(ZeroCopyInputStream&&) = delete;
ZeroCopyInputStream& operator=(ZeroCopyInputStream&&) = delete;
// Obtains a chunk of data from the stream.
//

Loading…
Cancel
Save