From f497dab1d87784a4179ca93b3a6cece358f2bc1b Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 27 Feb 2019 14:35:17 +1000 Subject: [PATCH] tools: drop the resolution capabilities from the python bindings Should've been part of 30c482aab216bf5039ebf8dba3908da1350b7f27 Signed-off-by: Peter Hutterer --- tools/ratbagc.py.in | 10 ---------- tools/ratbagd.py | 12 ------------ 2 files changed, 22 deletions(-) diff --git a/tools/ratbagc.py.in b/tools/ratbagc.py.in index 07dd485f..cf8db419 100644 --- a/tools/ratbagc.py.in +++ b/tools/ratbagc.py.in @@ -444,16 +444,6 @@ class RatbagdResolution(metaclass=MetaRatbag): """The index of this resolution.""" return self._id - @property - def capabilities(self): - """The capabilities of this resolution as a list. Capabilities not - present on the resolution are not in the list. Thus use e.g. - - if RatbagdResolution.CAP_SEPARATE_XY_RESOLUTION is in resolution.capabilities: - do something - """ - return self._capabilities - @property def resolution(self): """The tuple (xres, yres) with each resolution in DPI.""" diff --git a/tools/ratbagd.py b/tools/ratbagd.py index ef25b27b..28437bf6 100644 --- a/tools/ratbagd.py +++ b/tools/ratbagd.py @@ -515,8 +515,6 @@ class RatbagdProfile(_RatbagdDBus): class RatbagdResolution(_RatbagdDBus): """Represents a ratbagd resolution.""" - CAP_SEPARATE_XY_RESOLUTION = 1 - def __init__(self, object_path): _RatbagdDBus.__init__(self, "Resolution", object_path) self._active = self._get_dbus_property("IsActive") @@ -539,16 +537,6 @@ class RatbagdResolution(_RatbagdDBus): """The index of this resolution.""" return self._get_dbus_property("Index") - @GObject.Property - def capabilities(self): - """The capabilities of this resolution as a list. Capabilities not - present on the resolution are not in the list. Thus use e.g. - - if RatbagdResolution.CAP_SEPARATE_XY_RESOLUTION is in resolution.capabilities: - do something - """ - return self._get_dbus_property("Capabilities") or [] - @GObject.Property def resolution(self): """The resolution in DPI, either as single value tuple ``(res, )``