commit 8b52961cad9316f37154f4b52313a462a1feef3a
parent a54f6b2ea6a23e215015714d42c7f1da1115b5da
Author: Frederic Cambus <fred@statdns.com>
Date: Mon, 2 Jul 2018 18:03:25 +0200
Remove strtolower(), it's unused in the library
Diffstat:
3 files changed, 1 insertion(+), 46 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -21,7 +21,7 @@ find_path(GD_INCLUDE_DIRS gd.h)
find_library(GD_LIBRARIES NAMES gd REQUIRED)
include_directories(${GD_INCLUDE_DIRS})
-set(SRC src/drawchar.c src/fonts.c src/explode.c src/strtolower.c src/output.c)
+set(SRC src/drawchar.c src/fonts.c src/explode.c src/output.c)
set(LOADERS src/loaders/ansi.c src/loaders/artworx.c src/loaders/binary.c src/loaders/icedraw.c src/loaders/pcboard.c src/loaders/tundra.c src/loaders/xbin.c)
if(NOT HAVE_STRTONUM)
diff --git a/src/strtolower.c b/src/strtolower.c
@@ -1,23 +0,0 @@
-//
-// strtolower.c
-// AnsiLove/C
-//
-// Copyright (c) 2011-2018 Stefan Vogt, Brian Cassidy, and Frederic Cambus.
-// All rights reserved.
-//
-// This source code is licensed under the BSD 2-Clause License.
-// See the LICENSE file for details.
-//
-
-#include "strtolower.h"
-
-char *strtolower(char *str) {
- char *p = str;
-
- while (*p) {
- *p = tolower((unsigned char)*p);
- p++;
- }
-
- return str;
-}
diff --git a/src/strtolower.h b/src/strtolower.h
@@ -1,22 +0,0 @@
-//
-// strtolower.h
-// AnsiLove/C
-//
-// Copyright (c) 2011-2018 Stefan Vogt, Brian Cassidy, and Frederic Cambus.
-// All rights reserved.
-//
-// This source code is licensed under the BSD 2-Clause License.
-// See the LICENSE file for details.
-//
-
-#include <ctype.h>
-#include <stdlib.h>
-
-#ifndef strtolower_h
-#define strtolower_h
-
-// In-place modification of a string to be all lower case.
-
-char *strtolower(char *str);
-
-#endif