# HG changeset patch # User Santeri Piippo # Date 1377022512 -10800 # Node ID 0f67ff7664587c9f7e8f30ad830d5c9330fd807c # Parent 3779a14d597c3fa24697d89c1ea06f469af8032b removed broken config type check diff -r 3779a14d597c -r 0f67ff766458 src/config.cpp --- a/src/config.cpp Tue Aug 20 21:13:59 2013 +0300 +++ b/src/config.cpp Tue Aug 20 21:15:12 2013 +0300 @@ -45,11 +45,7 @@ } Config::Config (const char* name, const char* defstring) : - name (name), m_defstring (defstring) -{ - if (getType() != None) - fatal (fmt ("Config `%1` is of unknown type!", name)); -} + name (name), m_defstring (defstring) {} // ============================================================================= // ----------------------------------------------------------------------------- diff -r 3779a14d597c -r 0f67ff766458 src/config.h --- a/src/config.h Tue Aug 20 21:13:59 2013 +0300 +++ b/src/config.h Tue Aug 20 21:15:12 2013 +0300 @@ -39,7 +39,6 @@ class Config { public: enum Type { - None, Int, String, Float, @@ -51,7 +50,7 @@ const char* name; virtual Type getType() const { - return None; + return (Type) 0; } str toString() const;