[PATCH] Cleanup parsing code



Hello,

While looking at something else, I noticed that this code in the GDB/MI
parser was useless and even possibly harmful.  Removed thus, tested and
applying it the master branch.

	* src/dbgengine/nmv-gdbmi-parser.cc
	(GDBMIParser::parse_output_record): Remove useless and potentially
	harmful code.
---
 src/dbgengine/nmv-gdbmi-parser.cc |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/dbgengine/nmv-gdbmi-parser.cc b/src/dbgengine/nmv-gdbmi-parser.cc
index 4be9301..70f1521 100644
--- a/src/dbgengine/nmv-gdbmi-parser.cc
+++ b/src/dbgengine/nmv-gdbmi-parser.cc
@@ -1703,9 +1703,6 @@ GDBMIParser::parse_output_record (UString::size_type a_from,
         return false;
     }
 
-    while (m_priv->index_passed_end (cur)
-           && isspace (RAW_CHAR_AT (cur))) {++cur;}
-
     a_output = output;
     a_to = cur;
     return true;
-- 
		Dodji


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]