Remove unused variables

Detected through codeql

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3837>
This commit is contained in:
Bilal Elmoussaoui
2024-06-22 14:39:21 +02:00
committed by Bilal Elmoussaoui
parent 42e5c7bd9c
commit 6e1c761330
18 changed files with 1 additions and 30 deletions

View File

@ -2077,7 +2077,6 @@ choose_onscreen_egl_config (CoglOnscreen *onscreen,
MetaCrtcKms *crtc_kms = META_CRTC_KMS (onscreen_native->crtc);
MetaKmsPlane *kms_plane = meta_crtc_kms_get_assigned_primary_plane (crtc_kms);
EGLint attrs[MAX_EGL_CONFIG_ATTRIBS];
g_autoptr (GError) local_error = NULL;
static const uint32_t alphaless_10bpc_formats[] = {
GBM_FORMAT_XRGB2101010,
GBM_FORMAT_XBGR2101010,

View File

@ -2150,7 +2150,6 @@ meta_renderer_native_unset_modes (MetaRendererNative *renderer_native)
MetaGpu *gpu = l->data;
MetaKmsDevice *kms_device;
GList *k;
g_autoptr (MetaKmsFeedback) kms_feedback = NULL;
MetaKmsUpdate *kms_update = NULL;
if (!META_IS_GPU_KMS (gpu))

View File

@ -765,7 +765,6 @@ meta_thread_reset_thread_type (MetaThread *thread,
MetaThreadType thread_type)
{
MetaThreadPrivate *priv = meta_thread_get_instance_private (thread);
g_autoptr (GMainContext) thread_context = NULL;
if (priv->thread_type == thread_type)
return;