cogl: Remove unused Error types
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3910>
This commit is contained in:
parent
e43d9d7e75
commit
b9269abaf5
3 changed files with 0 additions and 51 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue