up-polkit: Drop unused variable

Variable 'error' is declared with g_autoptr(GError) but is never used
anywhere in up_polkit_finalize. No function in the body writes to
&error or reads from error.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com
Signed-off-by: Kate Hsuan <hpa@redhat.com>
This commit is contained in:
Kate Hsuan 2026-05-26 16:26:43 +08:00
commit 133e024e29

View file

@ -137,7 +137,6 @@ static void
up_polkit_finalize (GObject *object)
{
#ifdef HAVE_POLKIT
g_autoptr (GError) error = NULL;
UpPolkit *polkit;
g_return_if_fail (UP_IS_POLKIT (object));
polkit = UP_POLKIT (object);