diff --git a/core/AmArg.cpp b/core/AmArg.cpp index acebfce3..55474584 100644 --- a/core/AmArg.cpp +++ b/core/AmArg.cpp @@ -31,24 +31,6 @@ using std::shared_ptr; -const char* AmArg::t2str(int type) { - switch (type) { - case AmArg::Undef: return "Undef"; - case AmArg::Int: return "Int"; - case AmArg::LongLong: return "LongLong"; - case AmArg::Bool: return "Bool"; - case AmArg::Double: return "Double"; - case AmArg::CStr: return "CStr"; - case AmArg::AObject: return "AObject"; - case AmArg::AObjectShared: return "AObjectShared"; - case AmArg::ADynInv: return "ADynInv"; - case AmArg::Blob: return "Blob"; - case AmArg::Array: return "Array"; - case AmArg::Struct: return "Struct"; - default: return "unknown"; - } -} - AmArg::AmArg(std::map& v) : type(Undef) { assertStruct(); diff --git a/core/AmArg.h b/core/AmArg.h index 968ccf67..e6c927ec 100644 --- a/core/AmArg.h +++ b/core/AmArg.h @@ -395,8 +395,6 @@ class AmArg friend bool json2arg(std::istream& input, AmArg& res); static string print(const AmArg &a); - - static const char* t2str(int type); }; const int arg2int(const AmArg &a);