]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
doh: remove UNITTEST macro definition
authorDaniel Gustafsson <daniel@yesql.se>
Tue, 24 May 2022 10:46:22 +0000 (12:46 +0200)
committerDaniel Gustafsson <daniel@yesql.se>
Tue, 24 May 2022 10:46:22 +0000 (12:46 +0200)
The UNITTEST macro is defined by curl_setup.h so there is no use in
carry a local copy of the logic.

Closes: #8902
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
lib/doh.c

index c124f64317a4b39b675e430eb1c5474ddb026c09..a76617b6d7b98b9507f87669c2d91b3f0ae8fb12 100644 (file)
--- a/lib/doh.c
+++ b/lib/doh.c
@@ -69,12 +69,6 @@ static const char *doh_strerror(DOHcode code)
 }
 #endif
 
-#ifdef DEBUGBUILD
-#define UNITTEST
-#else
-#define UNITTEST static
-#endif
-
 /* @unittest 1655
  */
 UNITTEST DOHcode doh_encode(const char *host,