summaryrefslogtreecommitdiff
path: root/sys/src/liboventi/parsescore.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-04-13 01:09:45 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-04-13 01:09:45 +0200
commita5268a54131f53b51e778a7f6157da53cdbe3142 (patch)
treeadb177241ca239ed0d64f78a2fea339ee025123a /sys/src/liboventi/parsescore.c
parentffb0199247c2c748887f0782538545c75a304f88 (diff)
remove unused liboventi
Diffstat (limited to 'sys/src/liboventi/parsescore.c')
-rw-r--r--sys/src/liboventi/parsescore.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/sys/src/liboventi/parsescore.c b/sys/src/liboventi/parsescore.c
deleted file mode 100644
index 0f02610fd..000000000
--- a/sys/src/liboventi/parsescore.c
+++ /dev/null
@@ -1,31 +0,0 @@
-#include <u.h>
-#include <libc.h>
-#include <oventi.h>
-
-int
-vtParseScore(char *buf, uint n, uchar score[VtScoreSize])
-{
- int i, c;
-
- memset(score, 0, VtScoreSize);
-
- if(n != VtScoreSize*2)
- return 0;
- for(i=0; i<VtScoreSize*2; i++){
- if(buf[i] >= '0' && buf[i] <= '9')
- c = buf[i] - '0';
- else if(buf[i] >= 'a' && buf[i] <= 'f')
- c = buf[i] - 'a' + 10;
- else if(buf[i] >= 'A' && buf[i] <= 'F')
- c = buf[i] - 'A' + 10;
- else
- return 0;
-
- if((i & 1) == 0)
- c <<= 4;
-
- score[i>>1] |= c;
- }
- return 1;
-}
-