diff --git a/src/CBot/CBot.cpp b/src/CBot/CBot.cpp index 38288645..f4727d33 100644 --- a/src/CBot/CBot.cpp +++ b/src/CBot/CBot.cpp @@ -225,9 +225,6 @@ CBotInstr* CBotInstr::Compile(CBotToken* &p, CBotCStack* pStack) case ID_THROW: return CBotThrow::Compile(p, pStack); - case ID_DEBUGDD: - return CBotStartDebugDD::Compile(p, pStack); - case ID_INT: return CBotInt::Compile(p, pStack); diff --git a/src/CBot/CBot.h b/src/CBot/CBot.h index 4437104a..6f37b8b5 100644 --- a/src/CBot/CBot.h +++ b/src/CBot/CBot.h @@ -627,19 +627,6 @@ public: }; -class CBotStartDebugDD : public CBotInstr -{ -private: - -public: - CBotStartDebugDD(); - ~CBotStartDebugDD(); - static - CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack); - bool Execute(CBotStack* &pj) override; -}; - - class CBotIf : public CBotInstr { private: diff --git a/src/CBot/CBotDll.h b/src/CBot/CBotDll.h index 47dbb480..57ee15b7 100644 --- a/src/CBot/CBotDll.h +++ b/src/CBot/CBotDll.h @@ -487,8 +487,6 @@ private: long m_Ident; // associated identifier public: - static CBotString m_DebugVarStr; // end of a debug - bool m_bDebugDD; // idem déclanchable par robot \TODO ??? bool m_bCompileClass; public: diff --git a/src/CBot/CBotProgram.cpp b/src/CBot/CBotProgram.cpp index 2603fff6..cda190ce 100644 --- a/src/CBot/CBotProgram.cpp +++ b/src/CBot/CBotProgram.cpp @@ -33,7 +33,6 @@ CBotProgram::CBotProgram() m_ErrorCode = 0; m_Ident = 0; - m_bDebugDD = 0; } CBotProgram::CBotProgram(CBotVar* pInstance) @@ -46,7 +45,6 @@ CBotProgram::CBotProgram(CBotVar* pInstance) m_ErrorCode = 0; m_Ident = 0; - m_bDebugDD = 0; } diff --git a/src/CBot/CBotString.cpp b/src/CBot/CBotString.cpp index bde3d0dc..1f31f7f2 100644 --- a/src/CBot/CBotString.cpp +++ b/src/CBot/CBotString.cpp @@ -57,7 +57,6 @@ const std::map CBotString::s_keywordString = {ID_STATIC, "static"}, {ID_PROTECTED, "protected"}, {ID_PRIVATE, "private"}, - {ID_DEBUGDD, "STARTDEBUGDD"}, {ID_INT, "int"}, {ID_FLOAT, "float"}, {ID_BOOLEAN, "boolean"}, diff --git a/src/CBot/CBotWhile.cpp b/src/CBot/CBotWhile.cpp index c7272c7c..09cdc2cd 100644 --- a/src/CBot/CBotWhile.cpp +++ b/src/CBot/CBotWhile.cpp @@ -1259,35 +1259,3 @@ void CBotThrow :: RestoreState(CBotStack* &pj, bool bMain) } - -//////////////////////////////////////////////////////////// - - -CBotStartDebugDD::CBotStartDebugDD() -{ - name = "CBotStartDebugDD"; // debug -} - -CBotStartDebugDD::~CBotStartDebugDD() -{ -} - -CBotInstr* CBotStartDebugDD::Compile(CBotToken* &p, CBotCStack* pStack) -{ - - if (!IsOfType(p, ID_DEBUGDD)) return nullptr; // should never happen - - return new CBotStartDebugDD(); // creates the object - -} - -// execution of instruction "throw" - -bool CBotStartDebugDD :: Execute(CBotStack* &pj) -{ - CBotProgram* p = pj->GetBotCall(); - p->m_bDebugDD = true; - - return true; -} - diff --git a/src/CBot/resource.h b/src/CBot/resource.h index 4bb008a8..5c204f83 100644 --- a/src/CBot/resource.h +++ b/src/CBot/resource.h @@ -49,7 +49,6 @@ enum EID ID_STATIC, ID_PROTECTED, ID_PRIVATE, - ID_DEBUGDD, ID_INT, ID_FLOAT, ID_BOOLEAN,