mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
comment out some code that is not used and does not have prototypes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@73553 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -529,6 +529,7 @@ mm_content_setencoding(struct mm_content *ct, const char *encoding)
|
||||
* @param encoding A string representing the content encoding identifier
|
||||
* @return The numerical ID of the content encoding
|
||||
*/
|
||||
#if 0
|
||||
int
|
||||
mm_content_getencoding(struct mm_content *ct, const char *encoding)
|
||||
{
|
||||
@@ -545,6 +546,7 @@ mm_content_getencoding(struct mm_content *ct, const char *encoding)
|
||||
/* Not found */
|
||||
return MM_ENCODING_UNKNOWN;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Constructs a MIME conform string of Content-Type parameters.
|
||||
|
@@ -179,6 +179,7 @@ mm_context_attachpart(MM_CTX *ctx, struct mm_mimepart *part)
|
||||
* part at the given position, moving any possible following MIME parts one
|
||||
* down the hierarchy.
|
||||
*/
|
||||
#if 0
|
||||
int
|
||||
mm_context_attachpart_after(MM_CTX *ctx, struct mm_mimepart *part, int pos)
|
||||
{
|
||||
@@ -202,6 +203,7 @@ mm_context_attachpart_after(MM_CTX *ctx, struct mm_mimepart *part, int pos)
|
||||
|
||||
return(0);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Deletes a MIME part object from a MiniMIME context
|
||||
@@ -342,6 +344,7 @@ mm_context_haswarnings(MM_CTX *ctx)
|
||||
* This function generates a default boundary string for the given context.
|
||||
* If there is already a boundary for the context, the memory will be free()'d.
|
||||
*/
|
||||
#if 0
|
||||
int
|
||||
mm_context_generateboundary(MM_CTX *ctx)
|
||||
{
|
||||
@@ -384,6 +387,7 @@ mm_context_generateboundary(MM_CTX *ctx)
|
||||
ctx->boundary = boundary;
|
||||
return(0);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Sets a preamble for the given MiniMIME context
|
||||
@@ -397,6 +401,7 @@ mm_context_generateboundary(MM_CTX *ctx)
|
||||
* object. If preamble is a NULL-pointer then the preamble will be deleted,
|
||||
* and the currently associated memory will be free automagically.
|
||||
*/
|
||||
#if 0
|
||||
int
|
||||
mm_context_setpreamble(MM_CTX *ctx, char *preamble)
|
||||
{
|
||||
@@ -413,7 +418,9 @@ mm_context_setpreamble(MM_CTX *ctx, char *preamble)
|
||||
}
|
||||
return(0);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
char *
|
||||
mm_context_getpreamble(MM_CTX *ctx)
|
||||
{
|
||||
@@ -422,6 +429,7 @@ mm_context_getpreamble(MM_CTX *ctx)
|
||||
|
||||
return(ctx->preamble);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Creates an ASCII message of the specified context
|
||||
@@ -439,6 +447,7 @@ mm_context_getpreamble(MM_CTX *ctx)
|
||||
*
|
||||
* Great care is taken to not produce invalid MIME output.
|
||||
*/
|
||||
#if 0
|
||||
int
|
||||
mm_context_flatten(MM_CTX *ctx, char **flat, size_t *length, int flags)
|
||||
{
|
||||
@@ -600,5 +609,6 @@ cleanup:
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
@@ -235,6 +235,7 @@ cleanup:
|
||||
*
|
||||
* One should take care to free() the result once it's not needed anymore.
|
||||
*/
|
||||
#if 0
|
||||
int
|
||||
mm_envelope_getrecipients(MM_CTX *ctx, char **result, size_t *length)
|
||||
{
|
||||
@@ -265,5 +266,6 @@ mm_envelope_getrecipients(MM_CTX *ctx, char **result, size_t *length)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
@@ -409,6 +409,7 @@ mm_mimepart_getbody(struct mm_mimepart *part, int opaque)
|
||||
* body, and thus, the memory pointed to by data can be freed after the
|
||||
* operation.
|
||||
*/
|
||||
#if 0
|
||||
void
|
||||
mm_mimepart_setbody(struct mm_mimepart *part, const char *data, int opaque)
|
||||
{
|
||||
@@ -423,6 +424,7 @@ mm_mimepart_setbody(struct mm_mimepart *part, const char *data, int opaque)
|
||||
}
|
||||
part->length = strlen(data);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Gets the length of a given MIME part object
|
||||
|
@@ -68,6 +68,7 @@ static const char boundary_charset[] =
|
||||
* This function dynamically allocates memory and returns a pointer to it.
|
||||
* This memory should be released with free() once not needed anymore.
|
||||
*/
|
||||
#if 0
|
||||
int
|
||||
mm_mimeutil_gendate(char **result)
|
||||
{
|
||||
@@ -86,7 +87,7 @@ mm_mimeutil_gendate(char **result)
|
||||
return(-1);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
int
|
||||
mm_mimeutil_genboundary(char *prefix, size_t length, char **result)
|
||||
|
@@ -125,6 +125,7 @@ mm_param_free(struct mm_param *param)
|
||||
* actual object, so the memory holding the arguments can safely be
|
||||
* freed after successfull return of this function.
|
||||
*/
|
||||
#if 0
|
||||
struct mm_param *
|
||||
mm_param_generate(const char *name, const char *value)
|
||||
{
|
||||
@@ -137,6 +138,7 @@ mm_param_generate(const char *name, const char *value)
|
||||
|
||||
return param;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Sets the name of the given MIME parameter
|
||||
@@ -146,6 +148,7 @@ mm_param_generate(const char *name, const char *value)
|
||||
* @param copy If set to > 0, copy the value stored in name
|
||||
* @returns The address of the previous name for passing to free()
|
||||
*/
|
||||
#if 0
|
||||
char *
|
||||
mm_param_setname(struct mm_param *param, const char *name, int copy)
|
||||
{
|
||||
@@ -161,6 +164,7 @@ mm_param_setname(struct mm_param *param, const char *name, int copy)
|
||||
|
||||
return retadr;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Sets the value of the given MIME parameter
|
||||
@@ -170,6 +174,7 @@ mm_param_setname(struct mm_param *param, const char *name, int copy)
|
||||
* @param copy If set to > 0, copy the value stored in value
|
||||
* @returns The address of the previous value for passing to free()
|
||||
*/
|
||||
#if 0
|
||||
char *
|
||||
mm_param_setvalue(struct mm_param *param, const char *value, int copy)
|
||||
{
|
||||
@@ -185,6 +190,7 @@ mm_param_setvalue(struct mm_param *param, const char *value, int copy)
|
||||
|
||||
return retadr;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Gets the name of a MIME parameter object
|
||||
@@ -192,12 +198,14 @@ mm_param_setvalue(struct mm_param *param, const char *value, int copy)
|
||||
* @param param A valid MIME parameter object
|
||||
* @returns The name of the MIME parameter
|
||||
*/
|
||||
#if 0
|
||||
const char *
|
||||
mm_param_getname(struct mm_param *param)
|
||||
{
|
||||
assert(param != NULL);
|
||||
return param->name;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Gets the value of a MIME parameter object
|
||||
@@ -205,11 +213,13 @@ mm_param_getname(struct mm_param *param)
|
||||
* @param param A valid MIME parameter object
|
||||
* @returns The value of the MIME parameter
|
||||
*/
|
||||
#if 0
|
||||
const char *
|
||||
mm_param_getvalue(struct mm_param *param)
|
||||
{
|
||||
assert(param != NULL);
|
||||
return param->value;
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
Reference in New Issue
Block a user