Skip to content

Commit

Permalink
fix: remove redundant function call
Browse files Browse the repository at this point in the history
Remove an unused and redundant call to `g_ptr_array_find()`.
  • Loading branch information
andyholmes committed Feb 11, 2024
1 parent 56f4dc0 commit 9ce1552
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/plugins/share/valent-share-target.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9ce1552

Please sign in to comment.