changeset 448:73ff0a592b2f

Remove some debug cruft from tab completion code.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 26 May 2012 03:43:09 +0300
parents 2d650408f5de
children 7d9fa9f7caf1
files main.c
diffstat 1 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/main.c	Sat May 26 03:42:32 2012 +0300
+++ b/main.c	Sat May 26 03:43:09 2012 +0300
@@ -1396,11 +1396,7 @@
         newPattern = TRUE;
     }
     else
-    {
-        if (optDebug)
-            printMsg(currWin, "no mode\n");
         return FALSE;
-    }
 
     // Check if this is a command completion
     isCommand = (str[0] == '/' && startPos == 0);
@@ -1409,11 +1405,7 @@
     {
         endPos--;
         if (startPos > 0)
-        {
-            if (optDebug)
-                printMsg(currWin, "str[endPos] == optNickSep && startPos > 0 (%d)\n", startPos);
             return FALSE;
-        }
         hasSeparator = TRUE;
     }
 
@@ -1437,16 +1429,6 @@
         }
     }
 
-    if (optDebug)
-    {
-        printMsg(currWin, "sPos=%d, ePos=%d <-> bPos=%d, bufLen=%d : pat='%s' (again=%s, hassep=%s, hasspc=%s, newpat=%s, mode=%d)\n",
-                 startPos, endPos, buf->pos, buf->len, pattern,
-                 again ? "yes" : "no",
-                 hasSeparator ? "yes" : "no",
-                 hasSpace ? "yes" : "no",
-                 newPattern ? "yes" : "no", mode);
-    }
-
     if (!pattern)
         return FALSE;