summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libunix.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-09-07 16:09:04 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-09-07 16:09:04 +0200
commit218de6a8af4f7b4165112c6fd55d95e184b9f565 (patch)
tree7092dc584f96f5c3857c33b7dcb8948c4c3435f2 /crawl-ref/source/libunix.cc
parent5a1df532ff9e1c4ed2f1000392621789dc6dfafa (diff)
downloadcrawl-ref-218de6a8af4f7b4165112c6fd55d95e184b9f565.tar.gz
crawl-ref-218de6a8af4f7b4165112c6fd55d95e184b9f565.zip
Get rid of strlwr().
Besides being non-standard and present only on some platforms, it cannot be extended to Unicode as some characters expand or contract while being upper/lowercased.
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r--crawl-ref/source/libunix.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc
index dcab9a23e1..82078a7b12 100644
--- a/crawl-ref/source/libunix.cc
+++ b/crawl-ref/source/libunix.cc
@@ -794,14 +794,3 @@ bool kbhit()
return false;
}
}
-
-// Convert string to lowercase.
-char *strlwr(char *str)
-{
- unsigned int i;
-
- for (i = 0; i < strlen(str); i++)
- str[i] = tolower(str[i]);
-
- return (str);
-}