From c6643062b6a0a51a378485a4613f1ff4f016d356 Mon Sep 17 00:00:00 2001 From: theirix Date: Fri, 2 Sep 2016 22:33:12 +0300 Subject: [PATCH] Removed unneeded self-cast operators They are not used and caused a lot of warnings while compiling and using AMQP-CPP --- include/array.h | 10 ---------- include/table.h | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/include/array.h b/include/array.h index a86f1be..0ae9246 100644 --- a/include/array.h +++ b/include/array.h @@ -218,16 +218,6 @@ public: // postfix stream << ")"; } - - /** - * Cast to array (compiler will probably never call this method) - * @return Array - */ - virtual operator const Array& () const override - { - // this already is an array, so no cast is necessary - return *this; - } }; /** diff --git a/include/table.h b/include/table.h index fd90bed..30df4d5 100644 --- a/include/table.h +++ b/include/table.h @@ -242,16 +242,6 @@ public: // postfix stream << ")"; } - - /** - * Cast to table (compiler will probably never call this method) - * @return Table - */ - virtual operator const Table& () const override - { - // this already is an array, so no cast is necessary - return *this; - } }; /**