From 11dc5783e249acda76eb18bd33b645e158afce0d Mon Sep 17 00:00:00 2001 From: martin-s Date: Mon, 13 Oct 2008 17:11:58 +0000 Subject: Fix:Core:Removed useless function git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1455 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/cache.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'navit/cache.c') diff --git a/navit/cache.c b/navit/cache.c index 446cb990..252fcc7f 100644 --- a/navit/cache.c +++ b/navit/cache.c @@ -334,16 +334,6 @@ cache_insert_new(struct cache *cache, void *id, int size) return data; } -void * -cache_lookup_or_insert(struct cache *cache, void *id, int size) -{ - void *data=cache_lookup(cache, id); - if (! data) { - data=cache_insert_new(cache, id, size); - } - return data; -} - void cache_stats(struct cache *cache) { -- cgit v1.2.1