libfetch: remove a set-but-not-used variable
(cherry picked from commit ce700f78f7fb28a252978382a1d0a66d08b6469a)