Remove never used NeedDefinitionContext

Every function that accepts a definition also accepts an object instead, so
NeedNonGlobalContext is the exception to use.
objectmenu
Günther Brammer 2015-12-19 00:12:30 +01:00
parent b7ecc49a02
commit 9833c1ef2d
1 changed files with 0 additions and 8 deletions

View File

@ -79,14 +79,6 @@ public:
inline bool IsNil() const { return true; }
};
// Some functions are callable in definition context only.
// This exception gets thrown if they are called from anywhere else.
class NeedDefinitionContext : public C4AulExecError
{
public:
NeedDefinitionContext(const char *function) : C4AulExecError(FormatString("%s: must be called from definition context", function).getData()) {}
};
// Other functions are callable in object context only.
// This exception gets thrown if they are called from anywhere else.
class NeedObjectContext : public C4AulExecError