diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-03-31 22:22:24 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-03-31 22:22:24 +0200 |
commit | 24b7e99d302e3772084df880cb322334b7f88bb5 (patch) | |
tree | 55c4d8e336449f4cb2b718bfee4bb8fec7a5e592 /crawl-ref/source/cio.cc | |
parent | 5f8530060b0f55ceb29ec249356f40acd945f970 (diff) | |
download | crawl-ref-24b7e99d302e3772084df880cb322334b7f88bb5.tar.gz crawl-ref-24b7e99d302e3772084df880cb322334b7f88bb5.zip |
Axe some debugging code.
I'm getting tired of rebasing it away from the history.
Diffstat (limited to 'crawl-ref/source/cio.cc')
-rw-r--r-- | crawl-ref/source/cio.cc | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/crawl-ref/source/cio.cc b/crawl-ref/source/cio.cc index 61f0a201ab..b82415626a 100644 --- a/crawl-ref/source/cio.cc +++ b/crawl-ref/source/cio.cc @@ -401,24 +401,6 @@ int line_reader::read_line(bool clear_previous) while (true) { - ////////////// DEBUG START - std::string comm; - int oldpos = pos; - calc_pos(); - if (oldpos != pos) - { - comm += make_stringf(" invalid pos (cur at %d)!", pos); - pos = oldpos; - } - if ((signed int)strlen(buffer) != length) - { - comm += " invalid length!"; - pos = oldpos; - } - debuglog("\"%.*s\e[33m¤\e[0m%s\" pos=%d%s\n", cur-buffer, buffer, - cur, pos, comm.c_str()); - //////////// DEBUG END - int ch = getchm(getch_ck); #if defined(USE_UNIX_SIGNALS) && defined(SIGHUP_SAVE) && defined(USE_CURSES) @@ -549,7 +531,6 @@ void line_reader::calc_pos() int line_reader::process_key(int ch) { - debuglog("line_reader: key %d(%x)\n", ch, ch); switch (ch) { CASE_ESCAPE |