summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJulien Chaffraix <julien.chaffraix@gmail.com>2011-02-20 21:10:36 -0800
committerJulien Chaffraix <julien.chaffraix@gmail.com>2011-02-20 21:11:52 -0800
commit9f8e960a1adf4919ee4c83ab18740ecc5700e31d (patch)
tree8893bdc2a115c0f9e734be6748ad433a46c1682b /lib
parent06fc3569d29718dcdd5647f172237b8cc555be1d (diff)
downloadcurl-9f8e960a1adf4919ee4c83ab18740ecc5700e31d.tar.gz
tests: Cleaned up netrc testing.
Removed the "netrc_debug" keyword replaced with --netrc-file additions. Removed the debug code from Curl_parsenetrc as it is superseeded by --netrc-file.
Diffstat (limited to 'lib')
-rw-r--r--lib/netrc.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/netrc.c b/lib/netrc.c
index b069c8c49..6b616c6ad 100644
--- a/lib/netrc.c
+++ b/lib/netrc.c
@@ -80,21 +80,6 @@ int Curl_parsenetrc(const char *host,
#define NETRC DOT_CHAR "netrc"
-#ifdef DEBUGBUILD
- {
- /* This is a hack to allow testing.
- * If compiled with --enable-debug and CURL_DEBUG_NETRC is defined,
- * then it's the path to a substitute .netrc for testing purposes *only* */
-
- char *override = curl_getenv("CURL_DEBUG_NETRC");
-
- if(override) {
- fprintf(stderr, "NETRC: overridden " NETRC " file: %s\n", override);
- netrcfile = override;
- netrc_alloc = TRUE;
- }
- }
-#endif /* DEBUGBUILD */
if(!netrcfile) {
home = curl_getenv("HOME"); /* portable environment reader */
if(home) {