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 Oct 1, 2023
1 parent 2bd885f commit 6ecc896
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 6ecc896

Please sign in to comment.