[colobot] 55/377: Removed STARTDEBUGDD

Didier Raboud odyx at moszumanska.debian.org
Wed Mar 30 13:33:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit 8a160961fc134f0e052e348cfb4018f57eadf9f8
Author: krzys-h <krzys_h at interia.pl>
Date:   Sat Nov 21 17:33:48 2015 +0100

    Removed STARTDEBUGDD
---
 src/CBot/CBot.cpp        |  3 ---
 src/CBot/CBot.h          | 13 -------------
 src/CBot/CBotDll.h       |  2 --
 src/CBot/CBotProgram.cpp |  2 --
 src/CBot/CBotString.cpp  |  1 -
 src/CBot/CBotWhile.cpp   | 32 --------------------------------
 src/CBot/resource.h      |  1 -
 7 files changed, 54 deletions(-)

diff --git a/src/CBot/CBot.cpp b/src/CBot/CBot.cpp
index 3828864..f4727d3 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 4437104..6f37b8b 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 47dbb48..57ee15b 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 2603fff..cda190c 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 bde3d0d..1f31f7f 100644
--- a/src/CBot/CBotString.cpp
+++ b/src/CBot/CBotString.cpp
@@ -57,7 +57,6 @@ const std::map<EID,const char *> 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 c7272c7..09cdc2c 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 4bb008a..5c204f8 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,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list