projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4592a24
)
Remove unused code
author
Aaron Traas
<aaron@traas.org>
Tue, 27 Jun 2017 18:46:49 +0000
(14:46 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Tue, 27 Jun 2017 20:13:49 +0000
(16:13 -0400)
misc.c
patch
|
blob
|
history
diff --git
a/misc.c
b/misc.c
index e7a03984b0fb96739797499247b797e49e984166..f05e51883c5e55dbab1a323f73e15cca6149e2b5 100644
(file)
--- a/
misc.c
+++ b/
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 */
bool wordeq(token_t a, token_t b)