diff --git a/clickhouse/base/compressed.cpp b/clickhouse/base/compressed.cpp index 6b7af08..f1cb081 100644 --- a/clickhouse/base/compressed.cpp +++ b/clickhouse/base/compressed.cpp @@ -15,18 +15,6 @@ CompressedInput::CompressedInput(CodedInputStream* input) { } -CompressedInput::~CompressedInput() { - if (!mem_.Exhausted()) { -#if __cplusplus < 201703L - if (!std::uncaught_exception()) { -#else - if (!std::uncaught_exceptions()) { -#endif - throw std::runtime_error("some data was not readed"); - } - } -} - size_t CompressedInput::DoNext(const void** ptr, size_t len) { if (mem_.Exhausted()) { if (!Decompress()) { diff --git a/clickhouse/base/compressed.h b/clickhouse/base/compressed.h index 8c1b461..ebbb9c1 100644 --- a/clickhouse/base/compressed.h +++ b/clickhouse/base/compressed.h @@ -7,7 +7,6 @@ namespace clickhouse { class CompressedInput : public ZeroCopyInput { public: CompressedInput(CodedInputStream* input); - ~CompressedInput(); protected: size_t DoNext(const void** ptr, size_t len) override;