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:
Adam Jackson 2019-10-24 16:02:11 -04:00
parent acc7b83322
commit a99f579127
4 changed files with 0 additions and 58 deletions

View File

@ -77,13 +77,6 @@ _cogl_check_extension (const char *name, char * const *ext)
return FALSE; 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 /* XXX: it's expected that we'll deprecated this with
* cogl_framebuffer_clear at some point. */ * cogl_framebuffer_clear at some point. */
void void

View File

@ -79,27 +79,6 @@ cogl_get_option_group (void);
GCallback GCallback
cogl_get_proc_address (const char *name); 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: * cogl_get_bitmasks:
* @red: (out): Return location for the number of red bits or %NULL * @red: (out): Return location for the number of red bits or %NULL

View File

@ -46,31 +46,6 @@
#include "winsys/cogl-winsys-private.h" #include "winsys/cogl-winsys-private.h"
#include "deprecated/cogl-clutter.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 gboolean
cogl_clutter_winsys_has_feature (CoglWinsysFeature feature) cogl_clutter_winsys_has_feature (CoglWinsysFeature feature)
{ {

View File

@ -35,11 +35,6 @@
G_BEGIN_DECLS 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 #define cogl_clutter_winsys_has_feature cogl_clutter_winsys_has_feature_CLUTTER
COGL_DEPRECATED_FOR (cogl_has_feature) COGL_DEPRECATED_FOR (cogl_has_feature)
gboolean gboolean