summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/colour.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-07-29 11:52:08 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-07-30 18:45:15 +0200
commit685c36f53f57da6b6b0c6f8987cdad031732d0d7 (patch)
treee4c4188f8bd68919bc851c85a8ed996410bb09af /crawl-ref/source/colour.h
parent60af66ae9ee0a52b4d54e16ed9d6865b6decdc48 (diff)
downloadcrawl-ref-685c36f53f57da6b6b0c6f8987cdad031732d0d7.tar.gz
crawl-ref-685c36f53f57da6b6b0c6f8987cdad031732d0d7.zip
Remove an absolutely unholy, hardcoded function.
std::string::length() is an O(1) operation, so we waste just a single additional function call, a paltry cost for replacing this abomination.
Diffstat (limited to 'crawl-ref/source/colour.h')
-rw-r--r--crawl-ref/source/colour.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/crawl-ref/source/colour.h b/crawl-ref/source/colour.h
index 49eba0f852..dd4001bf5f 100644
--- a/crawl-ref/source/colour.h
+++ b/crawl-ref/source/colour.h
@@ -60,8 +60,6 @@ unsigned char make_high_colour(unsigned char colour);
bool is_element_colour(int col);
int element_colour(int element, bool no_random = false);
-int name_length_by_colour(int col);
-
#if defined(TARGET_OS_WINDOWS) || defined(TARGET_OS_DOS) || defined(USE_TILE)
unsigned short dos_brand( unsigned short colour,
unsigned brand = CHATTR_REVERSE);