From 666b60ae1c9c757e33d5b86dfd0d2e31edc969a4 Mon Sep 17 00:00:00 2001 From: Alex Young Date: Thu, 27 Feb 2014 14:54:18 +0000 Subject: [PATCH] Allow subset reads in prefetch_contains and prefetch_offset --- src/proxy/prefetch.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/proxy/prefetch.c b/src/proxy/prefetch.c index de8306d..4fa77b2 100644 --- a/src/proxy/prefetch.c +++ b/src/proxy/prefetch.c @@ -56,14 +56,6 @@ int prefetch_is_full( struct prefetch *prefetch ){ } } -int prefetch_contains( struct prefetch* prefetch, uint64_t from, uint32_t len ){ - NULLCHECK( prefetch ); - return from == prefetch->from && len == prefetch->len; -} -char *prefetch_offset( struct prefetch* prefetch, uint64_t from ){ - return prefetch->buffer; -} -/* int prefetch_contains( struct prefetch *prefetch, uint64_t from, uint32_t len ){ NULLCHECK( prefetch ); return from >= prefetch->from && @@ -74,4 +66,3 @@ char *prefetch_offset( struct prefetch *prefetch, uint64_t from ){ NULLCHECK( prefetch ); return prefetch->buffer + (from - prefetch->from); } -*/