OSDN Git Service

CrystalEdit/parsers: Remove unused variables
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sun, 8 Nov 2020 10:59:22 +0000 (19:59 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sun, 8 Nov 2020 10:59:22 +0000 (19:59 +0900)
18 files changed:
Externals/crystaledit/editlib/parsers/basic.cpp
Externals/crystaledit/editlib/parsers/dcl.cpp
Externals/crystaledit/editlib/parsers/fortran.cpp
Externals/crystaledit/editlib/parsers/lisp.cpp
Externals/crystaledit/editlib/parsers/pascal.cpp
Externals/crystaledit/editlib/parsers/perl.cpp
Externals/crystaledit/editlib/parsers/po.cpp
Externals/crystaledit/editlib/parsers/powershell.cpp
Externals/crystaledit/editlib/parsers/python.cpp
Externals/crystaledit/editlib/parsers/rexx.cpp
Externals/crystaledit/editlib/parsers/ruby.cpp
Externals/crystaledit/editlib/parsers/sgml.cpp
Externals/crystaledit/editlib/parsers/sh.cpp
Externals/crystaledit/editlib/parsers/siod.cpp
Externals/crystaledit/editlib/parsers/sql.cpp
Externals/crystaledit/editlib/parsers/tcl.cpp
Externals/crystaledit/editlib/parsers/tex.cpp
Externals/crystaledit/editlib/parsers/xml.cpp

index a600093..f345b35 100644 (file)
@@ -352,7 +352,6 @@ CrystalLineParser::ParseLineBasic (unsigned dwCookie, const TCHAR *pszChars, int
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   bool bRedefineBlock = true;
   bool bDecIndex = false;
   int nIdentBegin = -1;
@@ -439,12 +438,6 @@ out:
           continue;
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index 94b79b9..5fe8f3e 100644 (file)
@@ -129,7 +129,6 @@ CrystalLineParser::ParseLineDcl (unsigned dwCookie, const TCHAR *pszChars, int n
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   const TCHAR *pszCommentBegin = nullptr;
   const TCHAR *pszCommentEnd = nullptr;
   bool bRedefineBlock = true;
@@ -256,12 +255,6 @@ out:
           continue;
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index bec0521..dfd0fbe 100644 (file)
@@ -245,7 +245,6 @@ CrystalLineParser::ParseLineFortran (unsigned dwCookie, const TCHAR *pszChars, i
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   bool bRedefineBlock = true;
   bool bDecIndex = false;
   int nIdentBegin = -1;
@@ -351,12 +350,6 @@ out:
             }
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index 207348d..8995eb1 100644 (file)
@@ -266,7 +266,6 @@ CrystalLineParser::ParseLineLisp (unsigned dwCookie, const TCHAR *pszChars, int
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   const TCHAR *pszCommentBegin = nullptr;
   const TCHAR *pszCommentEnd = nullptr;
   bool bRedefineBlock = true;
@@ -395,12 +394,6 @@ out:
           continue;
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index 7a6ba84..7799f57 100644 (file)
@@ -118,7 +118,6 @@ CrystalLineParser::ParseLinePascal (unsigned dwCookie, const TCHAR *pszChars, in
   if (nLength == 0)
     return dwCookie & (COOKIE_EXT_COMMENT | COOKIE_EXT_COMMENT2);
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   bool bRedefineBlock = true;
   bool bDecIndex = false;
   int nIdentBegin = -1;
@@ -260,12 +259,6 @@ out:
           continue;
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index d1ea2d2..3ea2505 100644 (file)
@@ -262,7 +262,6 @@ CrystalLineParser::ParseLinePerl (unsigned dwCookie, const TCHAR *pszChars, int
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   bool bRedefineBlock = true;
   bool bDecIndex = false;
   int nIdentBegin = -1;
@@ -368,12 +367,6 @@ out:
             }
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index bc9423a..06a578a 100644 (file)
@@ -58,7 +58,6 @@ CrystalLineParser::ParseLinePo (unsigned dwCookie, const TCHAR *pszChars, int nL
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   bool bRedefineBlock = true;
   bool bDecIndex = false;
   int nIdentBegin = -1;
@@ -164,12 +163,6 @@ out:
             }
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index 583831a..0c229ba 100644 (file)
@@ -347,7 +347,6 @@ CrystalLineParser::ParseLinePowerShell (unsigned dwCookie, const TCHAR *pszChars
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   bool bRedefineBlock = true;
   bool bDecIndex = false;
   int nIdentBegin = -1;
@@ -479,12 +478,6 @@ out:
           continue;
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index 8cf4ba0..8865f19 100644 (file)
@@ -187,7 +187,6 @@ CrystalLineParser::ParseLinePython (unsigned dwCookie, const TCHAR *pszChars, in
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   bool bRedefineBlock = true;
   bool bDecIndex = false;
   int nIdentBegin = -1;
@@ -293,12 +292,6 @@ out:
             }
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index acaa207..0c1f130 100644 (file)
@@ -117,7 +117,6 @@ CrystalLineParser::ParseLineRexx (unsigned dwCookie, const TCHAR *pszChars, int
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   const TCHAR *pszCommentBegin = nullptr;
   const TCHAR *pszCommentEnd = nullptr;
   bool bRedefineBlock = true;
@@ -244,12 +243,6 @@ out:
           continue;
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index fe4d50b..85c200d 100644 (file)
@@ -138,7 +138,6 @@ CrystalLineParser::ParseLineRuby(unsigned dwCookie, const TCHAR *pszChars, int n
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   bool bRedefineBlock = true;
   bool bDecIndex = false;
   int nIdentBegin = -1;
@@ -268,12 +267,6 @@ out:
           continue;
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index ce3fee1..aacc83d 100644 (file)
@@ -109,7 +109,6 @@ CrystalLineParser::ParseLineSgml (unsigned dwCookie, const TCHAR *pszChars, int
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   bool bRedefineBlock = true;
   bool bDecIndex = false;
   int nIdentBegin = -1;
@@ -242,12 +241,6 @@ out:
           continue;
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index 88ad296..bb96789 100644 (file)
@@ -86,7 +86,6 @@ CrystalLineParser::ParseLineSh (unsigned dwCookie, const TCHAR *pszChars, int nL
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   bool bRedefineBlock = true;
   bool bDecIndex = false;
   int nIdentBegin = -1;
@@ -192,12 +191,6 @@ out:
             }
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index 43be29a..d6e6d94 100644 (file)
@@ -342,7 +342,6 @@ CrystalLineParser::ParseLineSiod (unsigned dwCookie, const TCHAR *pszChars, int
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   const TCHAR *pszCommentBegin = nullptr;
   const TCHAR *pszCommentEnd = nullptr;
   bool bRedefineBlock = true;
@@ -471,12 +470,6 @@ out:
           continue;
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index 101daae..65366d0 100644 (file)
@@ -77,7 +77,6 @@ CrystalLineParser::ParseLineSql (unsigned dwCookie, const TCHAR *pszChars, int n
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   const TCHAR *pszCommentBegin = nullptr;
   const TCHAR *pszCommentEnd = nullptr;
   bool bRedefineBlock = true;
@@ -204,12 +203,6 @@ out:
           continue;
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index 56b8099..a5ea147 100644 (file)
@@ -54,7 +54,6 @@ CrystalLineParser::ParseLineTcl (unsigned dwCookie, const TCHAR *pszChars, int n
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   bool bRedefineBlock = true;
   bool bDecIndex = false;
   int nIdentBegin = -1;
@@ -160,12 +159,6 @@ out:
             }
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index aeb1434..23374d8 100644 (file)
@@ -862,7 +862,6 @@ CrystalLineParser::ParseLineTex (unsigned dwCookie, const TCHAR *pszChars, int n
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   bool bRedefineBlock = true;
   bool bDecIndex = false;
   int nIdentBegin = -1;
@@ -968,12 +967,6 @@ out:
             }
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop
index e1bb480..e98fc78 100644 (file)
@@ -78,7 +78,6 @@ CrystalLineParser::ParseLineXml (unsigned dwCookie, const TCHAR *pszChars, int n
   if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
-  bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
   bool bRedefineBlock = true;
   bool bDecIndex = false;
   int nIdentBegin = -1;
@@ -211,12 +210,6 @@ out:
           continue;
         }
 
-      if (bFirstChar)
-        {
-          if (!xisspace (pszChars[I]))
-            bFirstChar = false;
-        }
-
       if (pBuf == nullptr)
         continue;               //  We don't need to extract keywords,
       //  for faster parsing skip the rest of loop