Skip to content
Snippets Groups Projects
Commit 266bcb06 authored by Julien Chaffraix's avatar Julien Chaffraix
Browse files

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.
parent fe165c69
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment