From 2748fe4f6483f8cfb3c4f91a01e8d897b7d1ac47 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 5 Apr 2010 21:35:38 +0000 Subject: Make downloads work again. svn path=/trunk/netsurf/; revision=10243 --- content/content.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'content/content.c') diff --git a/content/content.c b/content/content.c index a247dda2b..a44eb2847 100644 --- a/content/content.c +++ b/content/content.c @@ -1409,28 +1409,3 @@ nserror content_abort(struct content *c) return llcache_handle_abort(c->llcache); } -/** - * Convert a content into a download - * - * \param h Content to convert - * \return Pointer to low-level cache handle - */ -llcache_handle *content_convert_to_download(hlcache_handle *h) -{ - struct content *c = hlcache_handle_get_content(h); - llcache_handle *stream = c->llcache; - - assert(c != NULL); - assert(c->status == CONTENT_STATUS_LOADING); - - /** \todo Is this safe? */ - c->llcache = NULL; - - /** \todo Tell the llcache to stream the data without caching it */ - - /** \todo Invalidate the content object so it's flushed from the - * cache at the earliest opportunity */ - - return stream; -} - -- cgit v1.2.3