Unverified Commit 7fd2315d authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Remove comment_replace_vendor_string() which is now useless

parent 56567fae
......@@ -241,24 +241,6 @@ void _ope_comment_pad(char **comments, int* length, int amount)
}
}
int _ope_comment_replace_vendor_string(char **comments, int* length, const char *vendor_string)
{
char* p=*comments;
int vendor_length;
int newlen;
int newvendor_length;
vendor_length=readint(p, 8);
newvendor_length=strlen(vendor_string);
newlen=*length+newvendor_length-vendor_length;
p=realloc(p, newlen);
if (p == NULL) return 1;
writeint(p, 8, newvendor_length);
memmove(p+12+newvendor_length, p+12+vendor_length, newlen-12-newvendor_length);
memcpy(p+12, vendor_string, newvendor_length);
*comments=p;
*length=newlen;
return 0;
}
#undef readint
#undef writeint
......@@ -52,6 +52,4 @@ int _ope_comment_add(char **comments, int* length, const char *tag, const char *
void _ope_comment_pad(char **comments, int* length, int amount);
int _ope_comment_replace_vendor_string(char **comments, int* length, const char *vendor_string);
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment