Skip to content

Commit 95014b0

Browse files
committed
build: delete unused feature guards
- `HAVE_STRNCASECMP` - `HAVE_TCGETATTR` - `HAVE_TCSETATTR` Reviewed-by: Jay Satiro Reviewed-by: Daniel Stenberg Closes curl#6645
1 parent c79b9de commit 95014b0

11 files changed

+7
-133
lines changed

CMake/Platforms/WindowsCache.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# | (__| |_| | _ <| |___
66
# \___|\___/|_| \_\_____|
77
#
8-
# Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al.
8+
# Copyright (C) 1998 - 2021, Daniel Stenberg, <[email protected]>, et al.
99
#
1010
# This software is licensed as described in the file COPYING, which
1111
# you should have received as part of this distribution. The terms
@@ -89,8 +89,6 @@ if(NOT UNIX)
8989
set(HAVE_INET_ADDR 1)
9090
set(HAVE_INET_NTOA 1)
9191
set(HAVE_INET_NTOA_R 0)
92-
set(HAVE_TCGETATTR 0)
93-
set(HAVE_TCSETATTR 0)
9492
set(HAVE_PERROR 1)
9593
set(HAVE_CLOSESOCKET 1)
9694
set(HAVE_SETVBUF 0)

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,8 +1005,6 @@ check_symbol_exists(gettimeofday "${CURL_INCLUDES}" HAVE_GETTIMEOFDAY)
10051005
check_symbol_exists(inet_addr "${CURL_INCLUDES}" HAVE_INET_ADDR)
10061006
check_symbol_exists(inet_ntoa "${CURL_INCLUDES}" HAVE_INET_NTOA)
10071007
check_symbol_exists(inet_ntoa_r "${CURL_INCLUDES}" HAVE_INET_NTOA_R)
1008-
check_symbol_exists(tcsetattr "${CURL_INCLUDES}" HAVE_TCSETATTR)
1009-
check_symbol_exists(tcgetattr "${CURL_INCLUDES}" HAVE_TCGETATTR)
10101008
check_symbol_exists(perror "${CURL_INCLUDES}" HAVE_PERROR)
10111009
check_symbol_exists(closesocket "${CURL_INCLUDES}" HAVE_CLOSESOCKET)
10121010
check_symbol_exists(setvbuf "${CURL_INCLUDES}" HAVE_SETVBUF)

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4493,7 +4493,6 @@ CURL_CHECK_FUNC_STRCMPI
44934493
CURL_CHECK_FUNC_STRDUP
44944494
CURL_CHECK_FUNC_STRERROR_R
44954495
CURL_CHECK_FUNC_STRICMP
4496-
CURL_CHECK_FUNC_STRNCASECMP
44974496
CURL_CHECK_FUNC_STRNCMPI
44984497
CURL_CHECK_FUNC_STRNICMP
44994498
CURL_CHECK_FUNC_STRSTR

lib/config-os400.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* | (__| |_| | _ <| |___
88
* \___|\___/|_| \_\_____|
99
*
10-
* Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al.
10+
* Copyright (C) 1998 - 2021, Daniel Stenberg, <[email protected]>, et al.
1111
*
1212
* This software is licensed as described in the file COPYING, which
1313
* you should have received as part of this distribution. The terms
@@ -352,12 +352,6 @@
352352
/* Define if you have the <sys/ioctl.h> header file. */
353353
#define HAVE_SYS_IOCTL_H
354354

355-
/* Define if you have the `tcgetattr' function. */
356-
#undef HAVE_TCGETATTR
357-
358-
/* Define if you have the `tcsetattr' function. */
359-
#undef HAVE_TCSETATTR
360-
361355
/* Define if you have the <termios.h> header file. */
362356
#undef HAVE_TERMIOS_H
363357

lib/config-plan9.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* | (__| |_| | _ <| |___
88
* \___|\___/|_| \_\_____|
99
*
10-
* Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al.
10+
* Copyright (C) 1998 - 2021, Daniel Stenberg, <[email protected]>, et al.
1111
*
1212
* This software is licensed as described in the file COPYING, which
1313
* you should have received as part of this distribution. The terms
@@ -173,7 +173,6 @@
173173
#define HAVE_STRCASECMP 1
174174
#define HAVE_STRDUP 1
175175
#define HAVE_STRING_H 1
176-
#define HAVE_STRNCASECMP 1
177176
#define HAVE_STRSTR 1
178177
#define HAVE_STRTOK_R 1
179178
#define HAVE_STRTOLL 1

lib/config-riscos.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* | (__| |_| | _ <| |___
88
* \___|\___/|_| \_\_____|
99
*
10-
* Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al.
10+
* Copyright (C) 1998 - 2021, Daniel Stenberg, <[email protected]>, et al.
1111
*
1212
* This software is licensed as described in the file COPYING, which
1313
* you should have received as part of this distribution. The terms
@@ -329,12 +329,6 @@
329329
/* Define if you have the <sys/types.h> header file. */
330330
#define HAVE_SYS_TYPES_H
331331

332-
/* Define if you have the `tcgetattr' function. */
333-
#define HAVE_TCGETATTR
334-
335-
/* Define if you have the `tcsetattr' function. */
336-
#define HAVE_TCSETATTR
337-
338332
/* Define if you have the <termios.h> header file. */
339333
#define HAVE_TERMIOS_H
340334

lib/config-vxworks.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* | (__| |_| | _ <| |___
88
* \___|\___/|_| \_\_____|
99
*
10-
* Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al.
10+
* Copyright (C) 1998 - 2021, Daniel Stenberg, <[email protected]>, et al.
1111
*
1212
* This software is licensed as described in the file COPYING, which
1313
* you should have received as part of this distribution. The terms
@@ -568,9 +568,6 @@
568568
/* Define to 1 if you have the `strlcpy' function. */
569569
/* #undef HAVE_STRLCPY */
570570

571-
/* Define to 1 if you have the strncasecmp function. */
572-
#define HAVE_STRNCASECMP 1
573-
574571
/* Define to 1 if you have the strncmpi function. */
575572
/* #undef HAVE_STRNCMPI */
576573

lib/config-win32.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,6 @@
258258
/* Define if you have the stricmp function. */
259259
#define HAVE_STRICMP 1
260260

261-
/* Define if you have the strncasecmp function. */
262-
/* #define HAVE_STRNCASECMP 1 */
263-
264261
/* Define if you have the strnicmp function. */
265262
#define HAVE_STRNICMP 1
266263

@@ -273,12 +270,6 @@
273270
#define HAVE_STRTOLL 1
274271
#endif
275272

276-
/* Define if you have the tcgetattr function. */
277-
/* #define HAVE_TCGETATTR 1 */
278-
279-
/* Define if you have the tcsetattr function. */
280-
/* #define HAVE_TCSETATTR 1 */
281-
282273
/* Define if you have the utime function. */
283274
#ifndef __BORLANDC__
284275
#define HAVE_UTIME 1

lib/config-win32ce.h

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* | (__| |_| | _ <| |___
88
* \___|\___/|_| \_\_____|
99
*
10-
* Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al.
10+
* Copyright (C) 1998 - 2021, Daniel Stenberg, <[email protected]>, et al.
1111
*
1212
* This software is licensed as described in the file COPYING, which
1313
* you should have received as part of this distribution. The terms
@@ -205,9 +205,6 @@
205205
/* Define if you have the stricmp function. */
206206
/* #define HAVE_STRICMP 1 */
207207

208-
/* Define if you have the strncasecmp function. */
209-
/* #define HAVE_STRNCASECMP 1 */
210-
211208
/* Define if you have the strnicmp function. */
212209
/* #define HAVE_STRNICMP 1 */
213210

@@ -219,12 +216,6 @@
219216
#define HAVE_STRTOLL 1
220217
#endif
221218

222-
/* Define if you have the tcgetattr function. */
223-
/* #define HAVE_TCGETATTR 1 */
224-
225-
/* Define if you have the tcsetattr function. */
226-
/* #define HAVE_TCSETATTR 1 */
227-
228219
/* Define if you have the utime function */
229220
#define HAVE_UTIME 1
230221

lib/curl_config.h.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,6 @@
659659
/* Define to 1 if you have the `strlcpy' function. */
660660
#cmakedefine HAVE_STRLCPY 1
661661

662-
/* Define to 1 if you have the strncasecmp function. */
663-
#cmakedefine HAVE_STRNCASECMP 1
664-
665662
/* Define to 1 if you have the strncmpi function. */
666663
#cmakedefine HAVE_STRNCMPI 1
667664

0 commit comments

Comments
 (0)