Browse Source

Remove extraneous function

Remove extraneous function makeScriptCall which is no longer used.
Olathuss 6 months ago
parent
commit
df5ffd9e10
2 changed files with 0 additions and 27 deletions
  1. 0 25
      Engine/source/T3D/gameTSCtrl.cpp
  2. 0 2
      Engine/source/T3D/gameTSCtrl.h

+ 0 - 25
Engine/source/T3D/gameTSCtrl.cpp

@@ -240,31 +240,6 @@ void GameTSCtrl::renderWorld(const RectI &updateRect)
    GameRenderWorld();
    GameRenderWorld();
 }
 }
 
 
-//---------------------------------------------------------------------------
-void GameTSCtrl::makeScriptCall(const char *func, const GuiEvent &evt) const
-{
-   // write screen position
-   char *sp = Con::getArgBuffer(32);
-   dSprintf(sp, 32, "%d %d", evt.mousePoint.x, evt.mousePoint.y);
-
-   // write world position
-   char *wp = Con::getArgBuffer(32);
-   Point3F camPos;
-   mLastCameraQuery.cameraMatrix.getColumn(3, &camPos);
-   dSprintf(wp, 32, "%g %g %g", camPos.x, camPos.y, camPos.z);
-
-   // write click vector
-   char *vec = Con::getArgBuffer(32);
-   Point3F fp(evt.mousePoint.x, evt.mousePoint.y, 1.0);
-   Point3F ray;
-   unproject(fp, &ray);
-   ray -= camPos;
-   ray.normalizeSafe();
-   dSprintf(vec, 32, "%g %g %g", ray.x, ray.y, ray.z);
-
-   Con::executef( (SimObject*)this, func, sp, wp, vec );
-}
-
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
 void GameTSCtrl::sendMouseEvent(const char *name, const GuiEvent &event)
 void GameTSCtrl::sendMouseEvent(const char *name, const GuiEvent &event)
 {
 {

+ 0 - 2
Engine/source/T3D/gameTSCtrl.h

@@ -39,8 +39,6 @@ class GameTSCtrl : public GuiTSCtrl
 private:
 private:
    typedef GuiTSCtrl Parent;
    typedef GuiTSCtrl Parent;
 
 
-   void makeScriptCall(const char *func, const GuiEvent &evt) const;
-
    void sendMouseEvent(const char *name, const GuiEvent &evt);
    void sendMouseEvent(const char *name, const GuiEvent &evt);
 
 
 protected:
 protected: