From 339bed72725fe901724440939558c5f9817107ed Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 15 Sep 2011 22:47:50 +0000 Subject: Virtualise content handler finalisation calls. Remove pointless implementations. svn path=/trunk/netsurf/; revision=12797 --- image/bmp.h | 1 - image/gif.h | 1 - image/ico.h | 1 - image/image.c | 48 ------------------------------------------------ image/image.h | 1 - image/jpeg.h | 1 - image/mng.h | 3 --- image/nssprite.h | 1 - image/png.h | 1 - image/rsvg.h | 1 - image/svg.h | 1 - image/webp.h | 1 - 12 files changed, 61 deletions(-) (limited to 'image') diff --git a/image/bmp.h b/image/bmp.h index bdd8ffa5f..9c016ecdf 100644 --- a/image/bmp.h +++ b/image/bmp.h @@ -31,6 +31,5 @@ extern bmp_bitmap_callback_vt bmp_bitmap_callbacks; /** Only to be used by ICO code. */ nserror nsbmp_init(void); -void nsbmp_fini(void); #endif diff --git a/image/gif.h b/image/gif.h index ebf821a51..a75821a96 100644 --- a/image/gif.h +++ b/image/gif.h @@ -25,6 +25,5 @@ #define _NETSURF_IMAGE_GIF_H_ nserror nsgif_init(void); -void nsgif_fini(void); #endif diff --git a/image/ico.h b/image/ico.h index 3b592d7b2..21e9bdb6e 100644 --- a/image/ico.h +++ b/image/ico.h @@ -24,6 +24,5 @@ #define _NETSURF_IMAGE_ICO_H_ nserror nsico_init(void); -void nsico_fini(void); #endif diff --git a/image/image.c b/image/image.c index 099b58ac0..cf5badc4d 100644 --- a/image/image.c +++ b/image/image.c @@ -114,51 +114,3 @@ nserror image_init(void) return NSERROR_OK; } -/** - * Finalise image content handlers - */ -void image_fini(void) -{ -#ifdef WITH_BMP - nsbmp_fini(); -#endif - -#ifdef WITH_GIF - nsgif_fini(); -#endif - -#ifdef WITH_BMP - nsico_fini(); -#endif - -#ifdef WITH_JPEG - nsjpeg_fini(); -#endif - -#ifdef WITH_MNG - nsmng_fini(); - nsjpng_fini(); -#endif - -#ifdef WITH_NSSPRITE - nssprite_fini(); -#endif - -#ifdef WITH_PNG - nspng_fini(); -#endif - -#ifdef WITH_RSVG - nsrsvg_fini(); -#endif - -#ifdef WITH_NS_SVG - svg_fini(); -#endif - -#ifdef WITH_WEBP - webp_fini(); -#endif - -} - diff --git a/image/image.h b/image/image.h index 44ea148a8..7a698e54e 100644 --- a/image/image.h +++ b/image/image.h @@ -26,6 +26,5 @@ #include "utils/errors.h" nserror image_init(void); -void image_fini(void); #endif diff --git a/image/jpeg.h b/image/jpeg.h index 163f8f286..8c054732b 100644 --- a/image/jpeg.h +++ b/image/jpeg.h @@ -24,6 +24,5 @@ #define _NETSURF_IMAGE_JPEG_H_ nserror nsjpeg_init(void); -void nsjpeg_fini(void); #endif diff --git a/image/mng.h b/image/mng.h index 69c88f362..7ad779904 100644 --- a/image/mng.h +++ b/image/mng.h @@ -26,7 +26,4 @@ nserror nsmng_init(void); nserror nsjpng_init(void); -void nsmng_fini(void); -void nsjpng_fini(void); - #endif diff --git a/image/nssprite.h b/image/nssprite.h index daa31480b..38226f84e 100644 --- a/image/nssprite.h +++ b/image/nssprite.h @@ -24,6 +24,5 @@ #define _NETSURF_NS_SPRITE_H_ nserror nssprite_init(void); -void nssprite_fini(void); #endif diff --git a/image/png.h b/image/png.h index c14521ae8..3a2e3741f 100644 --- a/image/png.h +++ b/image/png.h @@ -21,6 +21,5 @@ #define _NETSURF_RISCOS_PNG_H_ nserror nspng_init(void); -void nspng_fini(void); #endif diff --git a/image/rsvg.h b/image/rsvg.h index 21e46d1b9..f38f8b0e8 100644 --- a/image/rsvg.h +++ b/image/rsvg.h @@ -24,6 +24,5 @@ #define _NETSURF_IMAGE_RSVG_H_ nserror nsrsvg_init(void); -void nsrsvg_fini(void); #endif diff --git a/image/svg.h b/image/svg.h index 149a3c85f..96b9c3879 100644 --- a/image/svg.h +++ b/image/svg.h @@ -24,6 +24,5 @@ #define _NETSURF_IMAGE_SVG_H_ nserror svg_init(void); -void svg_fini(void); #endif diff --git a/image/webp.h b/image/webp.h index cfc869fb2..0abfec8ec 100644 --- a/image/webp.h +++ b/image/webp.h @@ -24,6 +24,5 @@ #define _NETSURF_WEBP_H_ nserror webp_init(void); -void webp_fini(void); #endif -- cgit v1.2.3