DECORATE cleanup

- Remove some ExpVal stuff that wasn't used.
This commit is contained in:
Randy Heit 2013-08-23 22:17:08 -05:00
parent 2f7183b937
commit 956d754804
2 changed files with 0 additions and 27 deletions

View file

@ -164,36 +164,10 @@ struct ExpVal
return (Type == VAL_Int || Type == VAL_Sound) ? !!Int : Type == VAL_Float? Float!=0. : false;
}
template<class T> T *GetPointer() const
{
return Type == VAL_Object || Type == VAL_Pointer? (T*)pointer : NULL;
}
FSoundID GetSoundID() const
{
return Type == VAL_Sound? Int : 0;
}
int GetColor() const
{
return Type == VAL_Color? Int : 0;
}
FName GetName() const
{
return Type == VAL_Name? ENamedName(Int) : NAME_None;
}
FState *GetState() const
{
return Type == VAL_State? (FState*)pointer : NULL;
}
const PClass *GetClass() const
{
return Type == VAL_Class? (const PClass *)pointer : NULL;
}
};
struct ExpEmit

View file

@ -14,7 +14,6 @@ enum ExpValType
VAL_Array, // Array (very limited right now)
VAL_Object, // Object reference
VAL_Class, // Class reference
VAL_Pointer, // Dereferenced variable (only used for addressing arrays for now.)
VAL_Sound, // Sound identifier. Internally it's an int.
VAL_Name, // A Name
VAL_String, // A string