Browse Source

remove unused code.

Jeff Hutchinson 4 years ago
parent
commit
f056e181b7

+ 0 - 2
Engine/source/console/console.cpp

@@ -2622,7 +2622,6 @@ ConsoleValue _BaseEngineConsoleCallbackHelper::_execLater(SimConsoleThreadExecEv
 void ConsoleStackFrameSaver::save()
 void ConsoleStackFrameSaver::save()
 {
 {
    gCallStack.pushFrame(0);
    gCallStack.pushFrame(0);
-   STR.pushFrame();
    mSaved = true;
    mSaved = true;
 }
 }
 
 
@@ -2631,6 +2630,5 @@ void ConsoleStackFrameSaver::restore()
    if (mSaved)
    if (mSaved)
    {
    {
       gCallStack.popFrame();
       gCallStack.popFrame();
-      STR.popFrame();
    }
    }
 }
 }

+ 0 - 28
Engine/source/console/stringStack.cpp

@@ -39,7 +39,6 @@ StringStack::StringStack()
    mStart = 0;
    mStart = 0;
    mLen = 0;
    mLen = 0;
    mStartStackSize = 0;
    mStartStackSize = 0;
-   mFunctionOffset = 0;
    validateBufferSize(8192);
    validateBufferSize(8192);
    validateArgBufferSize(2048);
    validateArgBufferSize(2048);
    dMemset(mBuffer, '\0', mBufferSize);
    dMemset(mBuffer, '\0', mBufferSize);
@@ -180,30 +179,3 @@ U32 StringStack::compare()
 
 
    return ret;
    return ret;
 }
 }
-
-void StringStack::pushFrame()
-{
-   //Con::printf("StringStack pushFrame [frame=%i, start=%i]", mNumFrames, mStartStackSize);
-   mFrameOffsets[mNumFrames++] = mStartStackSize;
-   mStartOffsets[mStartStackSize++] = mStart;
-   mStart += ReturnBufferSpace;
-   validateBufferSize(0);
-}
-
-void StringStack::popFrame()
-{
-   //Con::printf("StringStack popFrame [frame=%i, start=%i]", mNumFrames, mStartStackSize);
-   mStartStackSize = mFrameOffsets[--mNumFrames];
-   mStart = mStartOffsets[mStartStackSize];
-   mLen = 0;
-}
-
-void StringStack::clearFrames()
-{
-   //Con::printf("StringStack clearFrames");
-   mNumFrames = 0;
-   mStart = 0;
-   mLen = 0;
-   mStartStackSize = 0;
-   mFunctionOffset = 0;
-}

+ 0 - 4
Engine/source/console/stringStack.h

@@ -169,10 +169,6 @@ struct StringStack
    /// and returning true if they matched, false if they didn't.
    /// and returning true if they matched, false if they didn't.
    U32 compare();
    U32 compare();
 
 
-   void pushFrame();
-
-   void popFrame();
-
    void clearFrames();
    void clearFrames();
 };
 };