tools: drop the resolution capabilities from the python bindings

Should've been part of 30c482aab2

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2019-02-27 14:35:17 +10:00
parent 67ee0fab14
commit f497dab1d8
2 changed files with 0 additions and 22 deletions

View File

@@ -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."""

View File

@@ -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, )``