forked from Mirrors/openclonk
Remove never used NeedDefinitionContext
Every function that accepts a definition also accepts an object instead, so NeedNonGlobalContext is the exception to use.objectmenu
parent
b7ecc49a02
commit
9833c1ef2d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue