summaryrefslogtreecommitdiff
path: root/src/mp-binary.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-08-29 21:41:37 +0200
committerZenWalker <[email protected]>2019-09-01 13:35:28 +0200
commit14e7c4b7cf120e696d4601f653576d7042bd8e83 (patch)
tree33e0b206c19b91326e1bb560ead9a281bf70d072 /src/mp-binary.c
parent6a276e812fd4a9e77db70606c4d4d74815ad19ad (diff)
downloadmate-calc-14e7c4b7cf120e696d4601f653576d7042bd8e83.tar.bz2
mate-calc-14e7c4b7cf120e696d4601f653576d7042bd8e83.tar.xz
The function 'mp_mask' is never used
cppcheck --enable=unusedFunction . [src/mp-binary.c:165]: (style) The function 'mp_mask' is never used.
Diffstat (limited to 'src/mp-binary.c')
-rw-r--r--src/mp-binary.c16
1 files changed, 0 insertions, 16 deletions
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
@@ -162,22 +162,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)
{
int i;