Removed dead commented-out code

This commit is contained in:
Leonetienne 2021-06-02 22:42:00 +02:00
parent d8f27d9018
commit 4d5547c02f

View File

@ -11,51 +11,3 @@ DATA_TYPE Value::GetDataType() const
{ {
return type; 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*>& Value::GetList() const
//{
// if (type != DATA_TYPE::LIST)
// throw std::bad_cast();
//
// return ((ListValue*)this)->GetValue();
//}