Remove unused code
This commit is contained in:
parent
4592a24350
commit
1e643da216
1 changed files with 0 additions and 12 deletions
12
misc.c
12
misc.c
|
@ -41,18 +41,6 @@ void packed_to_token(long packed, char token[6])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void token_to_packed(char token[6], long* packed)
|
|
||||||
{
|
|
||||||
*packed = 0;
|
|
||||||
for (size_t i = 0; i < 5; ++i)
|
|
||||||
{
|
|
||||||
if (token[4 - i] == '\0')
|
|
||||||
continue;
|
|
||||||
char mapped = ascii_to_advent[(int) token[4 - i]];
|
|
||||||
*packed |= (mapped << (6 * i));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Hide the fact that wods are corrently packed longs */
|
/* Hide the fact that wods are corrently packed longs */
|
||||||
|
|
||||||
bool wordeq(token_t a, token_t b)
|
bool wordeq(token_t a, token_t b)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue