common: Remove unused Exception type
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 4 Oct 2016 21:01:40 +0000 (23:01 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 4 Apr 2018 21:14:03 +0000 (23:14 +0200)
Also fix a typo in docs.

(cherry picked from commit 850493dbdb0a5580f7feceeaecdcb898c41f7b94)

src/common/types.h

index 8782d74..81c5715 100644 (file)
@@ -125,7 +125,7 @@ QDataStream &operator<<(QDataStream &out, T value) {
  * Catch-all stream serialization operator for enum types.
  *
  * @param[in,out] in    Stream to deserialize from
- * @param[in]     value Value to deserialize into
+ * @param[out]    value Value to deserialize into
  * @returns A reference to the stream
  */
 template<typename T,
@@ -136,13 +136,3 @@ QDataStream &operator>>(QDataStream &in, T &value) {
     value = static_cast<T>(v);
     return in;
 }
-
-//! Base class for exceptions.
-struct Exception {
-    Exception(QString msg = "Unknown Exception") : _msg(msg) {}
-    virtual ~Exception() {} // make gcc happy
-    virtual inline QString msg() { return _msg; }
-
-protected:
-    QString _msg;
-};