diff options
author | Julien Chaffraix <julien.chaffraix@gmail.com> | 2011-01-28 08:34:17 -0800 |
---|---|---|
committer | Julien Chaffraix <julien.chaffraix@gmail.com> | 2011-02-07 20:15:35 -0800 |
commit | 266bcb06d7c3f5ad1b0f1d7c05d02bc36611296a (patch) | |
tree | f19b6bbafda6bf3643262a11de776c21eb597a8d | |
parent | fe165c69dee2b347d1f54094e2751ea3fbd24297 (diff) |
netrc: Removed dead code.
The main has not been updated from some time and is out of sync with
the code. The code is now tested by several test cases so no need for
a seperate code path.
-rw-r--r-- | lib/netrc.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/netrc.c b/lib/netrc.c index 1934d6a69..7e0447d23 100644 --- a/lib/netrc.c +++ b/lib/netrc.c @@ -50,12 +50,6 @@ /* The last #include file should be: */ #include "memdebug.h" -/* Debug this single source file with: - 'make netrc' then run './netrc'! - - Oh, make sure you have a .netrc file too ;-) - */ - /* Get user and password from .netrc when given a machine name */ enum host_lookup_state { @@ -230,20 +224,3 @@ int Curl_parsenetrc(const char *host, return retcode; } - -#ifdef _NETRC_DEBUG -int main(int argc, argv_item_t argv[]) -{ - char login[64]=""; - char password[64]=""; - - if(argc<2) - return -1; - - if(0 == ParseNetrc(argv[1], login, password)) { - printf("HOST: %s LOGIN: %s PASSWORD: %s\n", - argv[1], login, password); - } -} - -#endif |