From 4d5547c02fdd92168bf4c11509f8b51390a874eb Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Wed, 2 Jun 2021 22:42:00 +0200 Subject: [PATCH] Removed dead commented-out code --- Hazelnupp/Value.cpp | 48 --------------------------------------------- 1 file changed, 48 deletions(-) diff --git a/Hazelnupp/Value.cpp b/Hazelnupp/Value.cpp index 128a784..7b3b43e 100644 --- a/Hazelnupp/Value.cpp +++ b/Hazelnupp/Value.cpp @@ -11,51 +11,3 @@ DATA_TYPE Value::GetDataType() const { return type; } -// -//long long int Value::GetInt64() const -//{ -// if (type != DATA_TYPE::INT) -// throw std::bad_cast(); -// -// return ((IntValue*)this)->GetValue(); -//} -// -//int Value::GetInt32() const -//{ -// if (type != DATA_TYPE::INT) -// throw std::bad_cast(); -// -// return (int)((IntValue*)this)->GetValue(); -//} -// -//long double Value::GetFloat64() const -//{ -// if (type != DATA_TYPE::FLOAT) -// throw std::bad_cast(); -// -// return ((FloatValue*)this)->GetValue(); -//} -// -//double Value::GetFloat32() const -//{ -// if (type != DATA_TYPE::FLOAT) -// throw std::bad_cast(); -// -// return (double)((FloatValue*)this)->GetValue(); -//} -// -//const std::string& Value::GetString() const -//{ -// if (type != DATA_TYPE::STRING) -// throw std::bad_cast(); -// -// return ((StringValue*)this)->GetValue(); -//} -// -//const std::vector& Value::GetList() const -//{ -// if (type != DATA_TYPE::LIST) -// throw std::bad_cast(); -// -// return ((ListValue*)this)->GetValue(); -//}