From 038fbb2d666106d474c3587b7cdde426d0ad363c Mon Sep 17 00:00:00 2001 From: Mathieu Comandon Date: Thu, 14 Sep 2023 13:24:00 -0700 Subject: [PATCH] Remove all_levels + unneeded exception (make config.py as small as possible!) --- lutris/config.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lutris/config.py b/lutris/config.py index 725a44ba8..264b36be8 100644 --- a/lutris/config.py +++ b/lutris/config.py @@ -202,16 +202,8 @@ class LutrisConfig: self.raw_config = raw_config - @property - def all_levels(self): - """Returns all the configuration levels, in order: game first, then runner, then system. - Iterate this to find settings that are explicitly set, without picking up defaults.""" - return [self.game_level, self.runner_level, self.system_level] - def remove(self): """Delete the configuration file from disk.""" - if not self.game_config_path: - raise RuntimeError("Tried to remove a non-existent config") if not path_exists(self.game_config_path): logger.debug("No config file at %s", self.game_config_path) return