From b9269abaf5ff2dd8a66477c8f70a2f106921976e Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Thu, 1 Aug 2024 10:59:03 +0200 Subject: [PATCH] cogl: Remove unused Error types Part-of: --- cogl/cogl/cogl-bitmap.c | 6 ------ cogl/cogl/cogl-bitmap.h | 27 --------------------------- cogl/cogl/cogl-buffer.h | 18 ------------------ 3 files changed, 51 deletions(-) diff --git a/cogl/cogl/cogl-bitmap.c b/cogl/cogl/cogl-bitmap.c index 4cec61f7c..3025c416d 100644 --- a/cogl/cogl/cogl-bitmap.c +++ b/cogl/cogl/cogl-bitmap.c @@ -372,12 +372,6 @@ cogl_bitmap_get_buffer (CoglBitmap *bitmap) return COGL_PIXEL_BUFFER (bitmap->buffer); } -uint32_t -cogl_bitmap_error_quark (void) -{ - return g_quark_from_static_string ("cogl-bitmap-error-quark"); -} - uint8_t * _cogl_bitmap_map (CoglBitmap *bitmap, CoglBufferAccess access, diff --git a/cogl/cogl/cogl-bitmap.h b/cogl/cogl/cogl-bitmap.h index c9a35f69f..bca72f7fa 100644 --- a/cogl/cogl/cogl-bitmap.h +++ b/cogl/cogl/cogl-bitmap.h @@ -197,31 +197,4 @@ cogl_bitmap_get_rowstride (CoglBitmap *bitmap); COGL_EXPORT CoglPixelBuffer * cogl_bitmap_get_buffer (CoglBitmap *bitmap); -/** - * COGL_BITMAP_ERROR: - * - * #GError domain for bitmap errors. - */ -#define COGL_BITMAP_ERROR (cogl_bitmap_error_quark ()) - -/** - * CoglBitmapError: - * @COGL_BITMAP_ERROR_FAILED: Generic failure code, something went - * wrong. - * @COGL_BITMAP_ERROR_UNKNOWN_TYPE: Unknown image type. - * @COGL_BITMAP_ERROR_CORRUPT_IMAGE: An image file was broken somehow. - * - * Error codes that can be thrown when performing bitmap - * operations. - */ -typedef enum -{ - COGL_BITMAP_ERROR_FAILED, - COGL_BITMAP_ERROR_UNKNOWN_TYPE, - COGL_BITMAP_ERROR_CORRUPT_IMAGE -} CoglBitmapError; - -COGL_EXPORT -uint32_t cogl_bitmap_error_quark (void); - G_END_DECLS diff --git a/cogl/cogl/cogl-buffer.h b/cogl/cogl/cogl-buffer.h index c73cfad06..a0b37455d 100644 --- a/cogl/cogl/cogl-buffer.h +++ b/cogl/cogl/cogl-buffer.h @@ -79,24 +79,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (CoglBuffer, g_object_unref) COGL_EXPORT GType cogl_buffer_get_type (void) G_GNUC_CONST; -#define COGL_BUFFER_ERROR (_cogl_buffer_error_domain ()) - -/** - * CoglBufferError: - * @COGL_BUFFER_ERROR_MAP: A buffer could not be mapped either - * because the feature isn't supported or because a system - * limitation was hit. - * - * Error enumeration for #CoglBuffer - */ -typedef enum /*< prefix=COGL_BUFFER_ERROR >*/ -{ - COGL_BUFFER_ERROR_MAP -} CoglBufferError; - -uint32_t -_cogl_buffer_error_domain (void); - /** * cogl_buffer_get_size: * @buffer: a buffer object