summaryrefslogtreecommitdiff
path: root/navit/maptool/itembin.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-05-15 15:44:50 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-05-15 15:44:50 +0000
commita9a0a433e2409eb514234bedb1a4132dcb221a55 (patch)
treefa66bed268a51c1fef518f540319e32d16c55ff6 /navit/maptool/itembin.c
parent12f6b62c2a1546769c5e04c5c388a46e13005b28 (diff)
downloadnavit-a9a0a433e2409eb514234bedb1a4132dcb221a55.tar.gz
Fix:maptool:Beginning of cleaning of buffer handling
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3251 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/maptool/itembin.c')
-rw-r--r--navit/maptool/itembin.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/navit/maptool/itembin.c b/navit/maptool/itembin.c
index 7af570006..b40231a30 100644
--- a/navit/maptool/itembin.c
+++ b/navit/maptool/itembin.c
@@ -7,36 +7,6 @@
-struct item_bin *
-read_item(FILE *in)
-{
- struct item_bin *ib=(struct item_bin *) buffer;
- int r,s;
- r=fread(ib, sizeof(*ib), 1, in);
- if (r != 1)
- return NULL;
- bytes_read+=r;
- dbg_assert((ib->len+1)*4 < sizeof(buffer));
- s=(ib->len+1)*4-sizeof(*ib);
- r=fread(ib+1, s, 1, in);
- if (r != 1)
- return NULL;
- bytes_read+=r;
- return ib;
-}
-
-struct item_bin *
-read_item_range(FILE *in, int *min, int *max)
-{
- struct range r;
-
- if (fread(&r, sizeof(r), 1, in) != 1)
- return NULL;
- *min=r.min;
- *max=r.max;
- return read_item(in);
-}
-
int
item_bin_read(struct item_bin *ib, FILE *in)
{