mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
core: remove C-versions of (v)format_string()
Only users of the std::string versions are left. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
0c7c96402c
commit
71f3189a31
2 changed files with 0 additions and 24 deletions
|
@ -140,25 +140,6 @@ void put_vformat(struct membuffer *b, const char *fmt, va_list args)
|
|||
}
|
||||
}
|
||||
|
||||
/* Silly helper using membuffer */
|
||||
char *vformat_string(const char *fmt, va_list args)
|
||||
{
|
||||
struct membuffer mb;
|
||||
put_vformat(&mb, fmt, args);
|
||||
return detach_cstring(&mb);
|
||||
}
|
||||
|
||||
char *format_string(const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
char *result;
|
||||
|
||||
va_start(args, fmt);
|
||||
result = vformat_string(fmt, args);
|
||||
va_end(args);
|
||||
return result;
|
||||
}
|
||||
|
||||
void put_format(struct membuffer *b, const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
|
|
@ -62,11 +62,6 @@ extern __printf(2, 3) void put_format(struct membuffer *, const char *fmt, ...);
|
|||
extern __printf(2, 0) char *add_to_string_va(char *old, const char *fmt, va_list args);
|
||||
extern __printf(2, 3) char *add_to_string(char *old, const char *fmt, ...);
|
||||
|
||||
/* Helpers that use membuffers internally */
|
||||
extern __printf(1, 0) char *vformat_string(const char *, va_list);
|
||||
extern __printf(1, 2) char *format_string(const char *, ...);
|
||||
|
||||
|
||||
/* Output one of our "milli" values with type and pre/post data */
|
||||
extern void put_milli(struct membuffer *, const char *, int, const char *);
|
||||
|
||||
|
|
Loading…
Reference in a new issue