From 827d063c6b13826b4546af9eb48c8beb57661a98 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 14 Oct 2012 19:11:35 +0100 Subject: Remove special RISC OS handling of thumbnail files. (The feature has been broken for ages.) --- content/urldb.c | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'content') diff --git a/content/urldb.c b/content/urldb.c index 7be508bef..eee98b3b2 100644 --- a/content/urldb.c +++ b/content/urldb.c @@ -102,10 +102,6 @@ #include "content/urldb.h" #include "desktop/cookies.h" #include "desktop/options.h" -#ifdef riscos -/** \todo lose this */ -#include "riscos/bitmap.h" -#endif #include "utils/log.h" #include "utils/corestrings.h" #include "utils/filename.h" @@ -500,23 +496,7 @@ void urldb_load(const char *filename) if (!fgets(s, MAXIMUM_URL_LENGTH, fp)) break; -#ifdef riscos - if (p && strlen(s) == 12) { - /* ensure filename is 'XX.XX.XX.XX' */ - if ((s[2] == '.') && (s[5] == '.') && - (s[8] == '.')) { - s[2] = '/'; - s[5] = '/'; - s[8] = '/'; - s[11] = '\0'; - p->thumb = bitmap_create_file(s); - } else if ((s[2] == '/') && (s[5] == '/') && - (s[8] == '/')) { - s[11] = '\0'; - p->thumb = bitmap_create_file(s); - } - } -#endif + if (!fgets(s, MAXIMUM_URL_LENGTH, fp)) break; @@ -719,14 +699,7 @@ void urldb_write_paths(const struct path_data *parent, const char *host, (int)p->urld.last_visit, (int)p->urld.type); -#ifdef riscos - if (p->thumb) - fprintf(fp, "%s\n", p->thumb->filename); - else - fprintf(fp, "\n"); -#else fprintf(fp, "\n"); -#endif if (p->urld.title) { uint8_t *s = (uint8_t *) p->urld.title; -- cgit v1.2.3