From 14e7c4b7cf120e696d4601f653576d7042bd8e83 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 29 Aug 2019 21:41:37 +0200 Subject: The function 'mp_mask' is never used cppcheck --enable=unusedFunction . [src/mp-binary.c:165]: (style) The function 'mp_mask' is never used. --- src/mp-binary.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/mp-binary.c') diff --git a/src/mp-binary.c b/src/mp-binary.c index d1de597..50483f8 100644 --- a/src/mp-binary.c +++ b/src/mp-binary.c @@ -161,22 +161,6 @@ mp_not(const MPNumber *x, int wordlen, MPNumber *z) } -void -mp_mask(const MPNumber *x, int wordlen, MPNumber *z) -{ - char *text; - size_t len, offset; - - /* Convert to a hexadecimal string and use last characters */ - text = to_hex_string(x); - len = strlen(text); - offset = wordlen / 4; - offset = len > offset ? len - offset: 0; - mp_set_from_string(text + offset, 16, z); - g_free(text); -} - - void mp_shift(const MPNumber *x, int count, MPNumber *z) { -- cgit v1.2.1