mirror of
https://github.com/brl/mutter.git
synced 2024-12-22 19:12:04 +00:00
cogl: Remove unused cogl_check_extension and cogl_clutter_check_extension
https://gitlab.gnome.org/GNOME/mutter/merge_requests/885
This commit is contained in:
parent
acc7b83322
commit
a99f579127
@ -77,13 +77,6 @@ _cogl_check_extension (const char *name, char * const *ext)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* XXX: This has been deprecated as public API */
|
||||
gboolean
|
||||
cogl_check_extension (const char *name, const char *ext)
|
||||
{
|
||||
return cogl_clutter_check_extension (name, ext);
|
||||
}
|
||||
|
||||
/* XXX: it's expected that we'll deprecated this with
|
||||
* cogl_framebuffer_clear at some point. */
|
||||
void
|
||||
|
@ -79,27 +79,6 @@ cogl_get_option_group (void);
|
||||
GCallback
|
||||
cogl_get_proc_address (const char *name);
|
||||
|
||||
/**
|
||||
* cogl_check_extension:
|
||||
* @name: extension to check for
|
||||
* @ext: list of extensions
|
||||
*
|
||||
* Check whether @name occurs in list of extensions in @ext.
|
||||
*
|
||||
* Return value: %TRUE if the extension occurs in the list, %FALSE otherwise.
|
||||
*
|
||||
* Deprecated: 1.2: OpenGL is an implementation detail for Cogl and so it's
|
||||
* not appropriate to expose OpenGL extensions through the Cogl API. This
|
||||
* function can be replaced by the following equivalent code:
|
||||
* |[
|
||||
* gboolean retval = (strstr (ext, name) != NULL) ? TRUE : FALSE;
|
||||
* ]|
|
||||
*/
|
||||
COGL_DEPRECATED
|
||||
gboolean
|
||||
cogl_check_extension (const char *name,
|
||||
const char *ext);
|
||||
|
||||
/**
|
||||
* cogl_get_bitmasks:
|
||||
* @red: (out): Return location for the number of red bits or %NULL
|
||||
|
@ -46,31 +46,6 @@
|
||||
#include "winsys/cogl-winsys-private.h"
|
||||
#include "deprecated/cogl-clutter.h"
|
||||
|
||||
gboolean
|
||||
cogl_clutter_check_extension (const char *name, const char *ext)
|
||||
{
|
||||
char *end;
|
||||
int name_len, n;
|
||||
|
||||
if (name == NULL || ext == NULL)
|
||||
return FALSE;
|
||||
|
||||
end = (char*)(ext + strlen(ext));
|
||||
|
||||
name_len = strlen(name);
|
||||
|
||||
while (ext < end)
|
||||
{
|
||||
n = strcspn(ext, " ");
|
||||
|
||||
if ((name_len == n) && (!strncmp(name, ext, n)))
|
||||
return TRUE;
|
||||
ext += (n + 1);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
cogl_clutter_winsys_has_feature (CoglWinsysFeature feature)
|
||||
{
|
||||
|
@ -35,11 +35,6 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define cogl_clutter_check_extension cogl_clutter_check_extension_CLUTTER
|
||||
COGL_DEPRECATED
|
||||
gboolean
|
||||
cogl_clutter_check_extension (const char *name, const char *ext);
|
||||
|
||||
#define cogl_clutter_winsys_has_feature cogl_clutter_winsys_has_feature_CLUTTER
|
||||
COGL_DEPRECATED_FOR (cogl_has_feature)
|
||||
gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user