util: Remove encode_hex

This commit is contained in:
Denis Kenzior 2018-12-27 13:47:36 -06:00
parent b2ebd60bcd
commit 9d18385e5f
2 changed files with 0 additions and 22 deletions

View File

@ -3278,25 +3278,6 @@ char *encode_hex_own_buf(const unsigned char *in, long len,
return buf;
}
char *encode_hex(const unsigned char *in, long len, unsigned char terminator)
{
char *buf;
int i;
if (len < 0) {
i = 0;
while (in[i] != terminator)
i++;
len = i;
}
buf = g_new(char, len * 2 + 1);
return encode_hex_own_buf(in, len, terminator, buf);
}
unsigned char *unpack_7bit_own_buf(const unsigned char *in, long len,
int byte_offset, bool ussd,
long max_to_unpack, long *items_written,

View File

@ -70,9 +70,6 @@ unsigned char *decode_hex_own_buf(const char *in, long len, long *items_written,
char *encode_hex_own_buf(const unsigned char *in, long len,
unsigned char terminator, char *buf);
char *encode_hex(const unsigned char *in, long len,
unsigned char terminator);
unsigned char *unpack_7bit_own_buf(const unsigned char *in, long len,
int byte_offset, bool ussd,
long max_to_unpack, long *items_written,