From: iceman1001 Date: Mon, 25 Jan 2016 19:22:59 +0000 (+0100) Subject: REM: removed unused code. X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/df0dd9e9b63ed16344ac994f1cbcd69761c244f7 REM: removed unused code. --- diff --git a/client/nonce2key/nonce2key.c b/client/nonce2key/nonce2key.c index 99ede9e0..2d0590df 100644 --- a/client/nonce2key/nonce2key.c +++ b/client/nonce2key/nonce2key.c @@ -14,16 +14,6 @@ #include "ui.h" #include "proxmark3.h" -int compar_state(const void * a, const void * b) { - // didn't work: (the result is truncated to 32 bits) - //return (*(int64_t*)b - *(int64_t*)a); - - // better: - if (*(int64_t*)b == *(int64_t*)a) return 0; - else if (*(int64_t*)b > *(int64_t*)a) return 1; - else return -1; -} - int nonce2key(uint32_t uid, uint32_t nt, uint32_t nr, uint64_t par_info, uint64_t ks_info, uint64_t * key) { struct Crypto1State *state;