diff --git a/src/plugins/share/valent-share-target.c b/src/plugins/share/valent-share-target.c index 2b11ad94159..c15c479ceab 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); }