From 8aceef971106ba35ab234b165dbe6e19c842f336 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 21 Sep 2012 02:18:54 +0200 Subject: PEGASUS: Replace FunctionPtr by our Functor code in Common. This "fixes" a segmentation fault in our buildbot's toolchain for DC. The segmentation fault occured while compiling engines/pegasus/ai/ai_condition.cpp. Thanks to clone2727 for looking over this and testing it. --- engines/pegasus/util.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'engines/pegasus/util.h') diff --git a/engines/pegasus/util.h b/engines/pegasus/util.h index 57839fca7b..16425343ca 100644 --- a/engines/pegasus/util.h +++ b/engines/pegasus/util.h @@ -47,24 +47,6 @@ private: int32 _objectID; }; -class FunctionPtr; - -typedef void (*tFunctionPtr)(FunctionPtr *theFunction, void *functionArg); - -class FunctionPtr { -public: - FunctionPtr(); - virtual ~FunctionPtr(); - - void setFunctionPtr(tFunctionPtr function, void *functionArg); - -protected: - void callFunction(); - - tFunctionPtr _function; - void *_functionArg; -}; - #define NUM_FLAGS (sizeof(Unit) * 8) #define BIT_INDEX_SHIFT (sizeof(Unit) + 2 - (sizeof(Unit)) / 3) #define BIT_INDEX_MASK (NUM_FLAGS - 1) -- cgit v1.2.3