From f349df599aca1eb3f7fd7a9362b1e064e50bb6dd Mon Sep 17 00:00:00 2001 From: Martin Rys Date: Fri, 4 Oct 2024 12:09:24 +0200 Subject: [PATCH] import_vdf: Remove odd unused variable --- scc/gui/importexport/import_vdf.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scc/gui/importexport/import_vdf.py b/scc/gui/importexport/import_vdf.py index 43ec3fe0..d863ca69 100644 --- a/scc/gui/importexport/import_vdf.py +++ b/scc/gui/importexport/import_vdf.py @@ -48,7 +48,6 @@ def _load_profiles(self) -> None: This is done in thread, with crazy hope that it will NOT crash GTK in the process. """ p = os.path.join(os.path.expanduser(self.STEAMPATH), "userdata") - i = 0 if os.path.exists(p): for user in os.listdir(p): profilelist = os.path.join(p, user, self.PROFILE_LIST) @@ -56,13 +55,13 @@ def _load_profiles(self) -> None: self._lock.acquire() log.debug("Loading profile list from '%s'", profilelist) try: - i = self._parse_profile_list(i, profilelist, user) + self._parse_profile_list(profilelist, user) except Exception as e: log.exception(e) self._lock.release() GLib.idle_add(self._load_finished) - def _parse_profile_list(self, i, filename: str, userid: str) -> None | int: + def _parse_profile_list(self, filename: str, userid: str) -> None | int: """Parse localconfig.vdf and load game and profile IDs. That is later decoded into name of game and profile name. Called from _load_profiles, in thread. Exceptions are catched and logged from there.