mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: remove put_format_loc()
This was replaced by C++ functions in ae299d5e66
.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
5b941ea34e
commit
e7d486982f
3 changed files with 0 additions and 22 deletions
|
@ -343,17 +343,6 @@ QString vqasprintf_loc(const char *fmt, va_list ap_in)
|
|||
return ret;
|
||||
}
|
||||
|
||||
extern "C" void put_vformat_loc(struct membuffer *b, const char *fmt, va_list args)
|
||||
{
|
||||
QByteArray utf8 = vqasprintf_loc(fmt, args).toUtf8();
|
||||
const char *data = utf8.constData();
|
||||
size_t utf8_size = utf8.size();
|
||||
|
||||
make_room(b, utf8_size);
|
||||
memcpy(b->buffer + b->len, data, utf8_size);
|
||||
b->len += utf8_size;
|
||||
}
|
||||
|
||||
// TODO: Avoid back-and-forth conversion between UTF16 and UTF8.
|
||||
std::string casprintf_loc(const char *cformat, ...)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue