diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-10-03 16:56:05 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-10-03 16:56:05 +0100 |
commit | dba846b5b84533cf940086312db2c596ebe3214e (patch) | |
tree | d79510dc933aa70f8d07bc1b1d7f4893aa96aa8b /riscos | |
parent | 1e4c733fc0d91a032ed2a8587b2f014eab7d0291 (diff) | |
download | netsurf-dba846b5b84533cf940086312db2c596ebe3214e.tar.gz netsurf-dba846b5b84533cf940086312db2c596ebe3214e.tar.bz2 |
Remove unused function.
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/bitmap.c | 48 | ||||
-rw-r--r-- | riscos/bitmap.h | 1 |
2 files changed, 0 insertions, 49 deletions
diff --git a/riscos/bitmap.c b/riscos/bitmap.c index 0af01c91e..9e808c7b1 100644 --- a/riscos/bitmap.c +++ b/riscos/bitmap.c @@ -208,54 +208,6 @@ void *bitmap_create(int width, int height, unsigned int state) /** - * Create a persistent, opaque bitmap from a file reference. - * - * \param file the file containing the image data - * \return an opaque struct bitmap, or NULL on memory exhaustion - */ - -struct bitmap *bitmap_create_file(char *file) -{ - struct bitmap *bitmap; - char *r; - fileswitch_object_type obj_type; - os_error *error; - - if (file[0] == '\0') - return NULL; - - /* check the file exists */ - sprintf(bitmap_unixname, "%s/%s", TEMP_FILENAME_PREFIX, file); - r = __riscosify(bitmap_unixname, 0, __RISCOSIFY_NO_SUFFIX, - bitmap_filename, 256, 0); - if (r == 0) { - LOG(("__riscosify failed")); - return NULL; - } - error = xosfile_read_stamped_no_path(bitmap_filename, - &obj_type, 0, 0, 0, 0, 0); - if ((error) || (obj_type != fileswitch_IS_FILE)) - return NULL; - - if (!filename_claim(file)) - return NULL; - bitmap = calloc(1, sizeof(struct bitmap)); - if (!bitmap) - return NULL; - bitmap->state = BITMAP_OPAQUE | BITMAP_PERSISTENT | BITMAP_READY; - strcpy(bitmap->filename, file); - - /* link in at the head */ - if (bitmap_head) { - bitmap->next = bitmap_head; - bitmap_head->previous = bitmap; - } - bitmap_head = bitmap; - return bitmap; -} - - -/** * Overlay a sprite onto the given bitmap * * \param bitmap bitmap object diff --git a/riscos/bitmap.h b/riscos/bitmap.h index b6fd3ae45..1253830cc 100644 --- a/riscos/bitmap.h +++ b/riscos/bitmap.h @@ -42,7 +42,6 @@ struct bitmap { }; -struct bitmap *bitmap_create_file(char *file); void bitmap_overlay_sprite(struct bitmap *bitmap, const osspriteop_header *s); void bitmap_initialise_memory(void); void bitmap_quit(void); |