]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
comment out some code that is not used and does not have prototypes
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 5 Jul 2007 22:48:17 +0000 (22:48 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 5 Jul 2007 22:48:17 +0000 (22:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@73553 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/minimime/mm_contenttype.c
main/minimime/mm_context.c
main/minimime/mm_envelope.c
main/minimime/mm_mimepart.c
main/minimime/mm_mimeutil.c
main/minimime/mm_param.c

index ff978df85d391e0aa8dc0de46bcac52a6a45df46..27fbc0c121ec217ea60c7a9c4f4ecbc21780d5f1 100644 (file)
@@ -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.
index e655b925aa08f7fbefefce304480d35ed5ecd52a..d67c1e6b30b5c229f415884c5c1a047196a3dca7 100644 (file)
@@ -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
 
 /** @} */
index 56449043105c629bd87dd656749512338a5430f8..7400d3de22b4651a2a4f0513d863c7b72a33edf0 100644 (file)
@@ -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
 
 /** @} */
index 3d2287427877e200cb0b9f16ee760cc477beea56..631debae01721c70ac9a715ac1441375121ce3d9 100644 (file)
@@ -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
index 4e52a6acfe064980a89a10b42a89435f1daccce9..4a5cc35e9d77858662117217f1ff6361dddfd8a1 100644 (file)
@@ -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)
index 8877c3e131371a199bb02b1b78e8973be9603de7..ee4147bf5e090bb9b9d1bcd32a1f272fae29aea1 100644 (file)
@@ -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
 
 /** @} */