diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-04-20 03:43:34 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-04-20 03:43:34 +0200 |
commit | 3c9610e3a0037c99a7a884070fca015df06a572e (patch) | |
tree | 4e84d322266699b3d1934fc0c64226017bee8a94 /crawl-ref/source/format.cc | |
parent | 71296b4449860aff4f6ac29b8467f9c6ff5e4b4f (diff) | |
download | crawl-ref-3c9610e3a0037c99a7a884070fca015df06a572e.tar.gz crawl-ref-3c9610e3a0037c99a7a884070fca015df06a572e.zip |
Drop pointless braces after else/else if as well.
Diffstat (limited to 'crawl-ref/source/format.cc')
-rw-r--r-- | crawl-ref/source/format.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/crawl-ref/source/format.cc b/crawl-ref/source/format.cc index ca0cc95f02..0f87f33b7c 100644 --- a/crawl-ref/source/format.cc +++ b/crawl-ref/source/format.cc @@ -550,13 +550,9 @@ static int _tagged_string_printable_length(const std::string& s) ++len; // len wasn't incremented before } else if (*ci == '>') // tag close, still nothing printed - { in_tag = false; - } else // tag continues - { ++last_taglen; - } } else if (*ci == '<') // tag starts { @@ -564,9 +560,7 @@ static int _tagged_string_printable_length(const std::string& s) last_taglen = 1; } else // normal, printable character - { ++len; - } } return (len); } |