Code Cleanup

- When compiling the 2.0.0 branch of Taskwarrior with GCC 4.6.1, the compiler
  generates a number of warnings.  This patch eliminates these warnings.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
Matt Kraai
2011-07-25 23:17:37 -04:00
committed by Paul Beckingham
parent b9ea9ca2db
commit 0e2da7f1d4
5 changed files with 17 additions and 45 deletions

View File

@@ -238,7 +238,6 @@ bool Nibbler::getQuoted (
bool inquote = false;
bool inescape = false;
char current = 0;
char previous = 0;
result = "";
if (mCursor >= mLength ||
@@ -249,7 +248,6 @@ bool Nibbler::getQuoted (
for (std::string::size_type i = mCursor; i < mLength; ++i)
{
previous = current;
current = mInput[i];
if (current == '\\' && !inescape)