From 70ef1aa42eb2df5e9c3aa4faa014c8d539450018 Mon Sep 17 00:00:00 2001 From: Andy Holmes Date: Sun, 1 Oct 2023 16:18:08 -0700 Subject: [PATCH] fix: remove redundant function call Remove an unused and redundant call to `g_ptr_array_find()`. --- src/plugins/share/valent-share-target.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/plugins/share/valent-share-target.c b/src/plugins/share/valent-share-target.c index 2b11ad9415..c15c479cea 100644 --- a/src/plugins/share/valent-share-target.c +++ b/src/plugins/share/valent-share-target.c @@ -34,8 +34,6 @@ on_destroy (GtkWindow *window, if (self->windows == NULL) return; - g_ptr_array_find (self->windows, window, &index); - if (g_ptr_array_find (self->windows, window, &index)) g_ptr_array_steal_index (self->windows, index); }