diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-05 22:48:17 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-05 22:48:17 +0000 |
commit | b9917407b7350f81a6f6e0fb6b0bafc4f2d3abff (patch) | |
tree | 2716d5d51d73b280fe1ebeedf57942a8aabb0247 | |
parent | 702f344a430101cafa800d2dd775c0a00de94c0a (diff) |
comment out some code that is not used and does not have prototypes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73553 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | main/minimime/mm_contenttype.c | 2 | ||||
-rw-r--r-- | main/minimime/mm_context.c | 10 | ||||
-rw-r--r-- | main/minimime/mm_envelope.c | 2 | ||||
-rw-r--r-- | main/minimime/mm_mimepart.c | 2 | ||||
-rw-r--r-- | main/minimime/mm_mimeutil.c | 3 | ||||
-rw-r--r-- | main/minimime/mm_param.c | 10 |
6 files changed, 28 insertions, 1 deletions
diff --git a/main/minimime/mm_contenttype.c b/main/minimime/mm_contenttype.c index ff978df85..27fbc0c12 100644 --- a/main/minimime/mm_contenttype.c +++ b/main/minimime/mm_contenttype.c @@ -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. diff --git a/main/minimime/mm_context.c b/main/minimime/mm_context.c index e655b925a..d67c1e6b3 100644 --- a/main/minimime/mm_context.c +++ b/main/minimime/mm_context.c @@ -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 /** @} */ diff --git a/main/minimime/mm_envelope.c b/main/minimime/mm_envelope.c index 564490431..7400d3de2 100644 --- a/main/minimime/mm_envelope.c +++ b/main/minimime/mm_envelope.c @@ -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 /** @} */ diff --git a/main/minimime/mm_mimepart.c b/main/minimime/mm_mimepart.c index 3d2287427..631debae0 100644 --- a/main/minimime/mm_mimepart.c +++ b/main/minimime/mm_mimepart.c @@ -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 diff --git a/main/minimime/mm_mimeutil.c b/main/minimime/mm_mimeutil.c index 4e52a6acf..4a5cc35e9 100644 --- a/main/minimime/mm_mimeutil.c +++ b/main/minimime/mm_mimeutil.c @@ -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) diff --git a/main/minimime/mm_param.c b/main/minimime/mm_param.c index 8877c3e13..ee4147bf5 100644 --- a/main/minimime/mm_param.c +++ b/main/minimime/mm_param.c @@ -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 /** @} */ |