Skip to content

Commit

Permalink
Remove unused for loop in DbusPropertiesInterfaceAsync
Browse files Browse the repository at this point in the history
It was looping over all members but did not actualy do anything
since 624e611 .
  • Loading branch information
igo95862 committed Oct 8, 2023
1 parent 23bc01c commit 87aba22
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/sdbus/dbus_proxy_async_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
from __future__ import annotations

from inspect import getmembers
from typing import Any, Dict, List, Literal, Optional, Tuple

from .dbus_common_funcs import _parse_properties_vardict, get_default_bus
from .dbus_proxy_async_interface_base import DbusInterfaceBaseAsync
from .dbus_proxy_async_method import dbus_method_async
from .dbus_proxy_async_property import DbusPropertyAsyncBinded
from .dbus_proxy_async_signal import dbus_signal_async
from .sd_bus_internals import DbusPropertyEmitsChangeFlag, SdBus, SdBusSlot
from .sd_bus_internals import SdBus, SdBusSlot


class DbusPeerInterfaceAsync(
Expand Down Expand Up @@ -66,13 +64,6 @@ class DbusPropertiesInterfaceAsync(
interface_name='org.freedesktop.DBus.Properties',
serving_enabled=False,
):
def __init__(self) -> None:
super().__init__()

for key, value in getmembers(self):
if isinstance(value, DbusPropertyAsyncBinded):
if not value.dbus_property.flags & DbusPropertyEmitsChangeFlag:
continue

@dbus_signal_async('sa{sv}as')
def properties_changed(self) -> DBUS_PROPERTIES_CHANGED_TYPING:
Expand Down

0 comments on commit 87aba22

Please sign in to comment.