summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-10-14 19:11:35 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-10-14 19:11:35 +0100
commit827d063c6b13826b4546af9eb48c8beb57661a98 (patch)
tree4a9269c6d0d068f6ea6774d6117a5018ed8133a2
parent8dd8330eee9425be41743117a8c36bf7b54696cc (diff)
downloadnetsurf-827d063c6b13826b4546af9eb48c8beb57661a98.tar.gz
netsurf-827d063c6b13826b4546af9eb48c8beb57661a98.tar.bz2
Remove special RISC OS handling of thumbnail files. (The feature has been broken for ages.)
-rw-r--r--content/urldb.c29
1 files changed, 1 insertions, 28 deletions
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;