mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
remove some unused code
This commit is contained in:
parent
efd1d9dc04
commit
d911e22d8f
33
lib/smtp.c
33
lib/smtp.c
@ -94,7 +94,6 @@
|
|||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
|
|
||||||
/* Local API functions */
|
/* Local API functions */
|
||||||
static CURLcode smtp_parse_url_path(struct connectdata *conn);
|
|
||||||
static CURLcode smtp_regular_transfer(struct connectdata *conn, bool *done);
|
static CURLcode smtp_regular_transfer(struct connectdata *conn, bool *done);
|
||||||
static CURLcode smtp_do(struct connectdata *conn, bool *done);
|
static CURLcode smtp_do(struct connectdata *conn, bool *done);
|
||||||
static CURLcode smtp_done(struct connectdata *conn,
|
static CURLcode smtp_done(struct connectdata *conn,
|
||||||
@ -108,9 +107,7 @@ static int smtp_getsock(struct connectdata *conn,
|
|||||||
static CURLcode smtp_doing(struct connectdata *conn,
|
static CURLcode smtp_doing(struct connectdata *conn,
|
||||||
bool *dophase_done);
|
bool *dophase_done);
|
||||||
static CURLcode smtp_setup_connection(struct connectdata * conn);
|
static CURLcode smtp_setup_connection(struct connectdata * conn);
|
||||||
#if 0
|
|
||||||
static void smtp_respinit(struct connectdata *conn);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SMTP protocol handler.
|
* SMTP protocol handler.
|
||||||
@ -322,9 +319,6 @@ static CURLcode smtp_mail(struct connectdata *conn)
|
|||||||
{
|
{
|
||||||
CURLcode result = CURLE_OK;
|
CURLcode result = CURLE_OK;
|
||||||
struct SessionHandle *data = conn->data;
|
struct SessionHandle *data = conn->data;
|
||||||
#if 0
|
|
||||||
struct FTP *smtp = data->state.proto.smtp;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* send MAIL */
|
/* send MAIL */
|
||||||
result = Curl_pp_sendf(&conn->proto.smtpc.pp, "MAIL FROM:<%s>",
|
result = Curl_pp_sendf(&conn->proto.smtpc.pp, "MAIL FROM:<%s>",
|
||||||
@ -739,10 +733,6 @@ static CURLcode smtp_do(struct connectdata *conn, bool *done)
|
|||||||
if(retcode)
|
if(retcode)
|
||||||
return retcode;
|
return retcode;
|
||||||
|
|
||||||
retcode = smtp_parse_url_path(conn);
|
|
||||||
if(retcode)
|
|
||||||
return retcode;
|
|
||||||
|
|
||||||
retcode = smtp_regular_transfer(conn, done);
|
retcode = smtp_regular_transfer(conn, done);
|
||||||
|
|
||||||
return retcode;
|
return retcode;
|
||||||
@ -796,27 +786,6 @@ static CURLcode smtp_disconnect(struct connectdata *conn)
|
|||||||
return CURLE_OK;
|
return CURLE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
*
|
|
||||||
* smtp_parse_url_path()
|
|
||||||
*
|
|
||||||
* Parse the URL path into separate path components.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
static CURLcode smtp_parse_url_path(struct connectdata *conn)
|
|
||||||
{
|
|
||||||
/* the smtp struct is already inited in smtp_connect() */
|
|
||||||
#if 0
|
|
||||||
struct smtp_conn *smtpc = &conn->proto.smtpc;
|
|
||||||
struct SessionHandle *data = conn->data;
|
|
||||||
#endif
|
|
||||||
(void)conn;
|
|
||||||
|
|
||||||
/* url decode... */
|
|
||||||
|
|
||||||
return CURLE_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* call this when the DO phase has completed */
|
/* call this when the DO phase has completed */
|
||||||
static CURLcode smtp_dophase_done(struct connectdata *conn,
|
static CURLcode smtp_dophase_done(struct connectdata *conn,
|
||||||
bool connected)
|
bool connected)
|
||||||
|
Loading…
Reference in New Issue
Block a user