Skip to content

Commit

Permalink
#3592 remove unused rpc subsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 26, 2023
1 parent 8c442a2 commit 058f8f2
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 237 deletions.
10 changes: 0 additions & 10 deletions xpra/client/gui/client_window_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -932,16 +932,6 @@ def keyboard_layout_changed(self, *args) -> None:
self._client.window_keyboard_layout_changed(self)


def dbus_call(self, *args, **kwargs) -> None:
#alias for rpc_call using dbus as rpc_type, see UIXpraClient.dbus_call
if not self._client.server_dbus_proxy:
log.error("Error: cannot send remote dbus call:")
log.error(" this server does not support dbus-proxying")
return
rpc_args = [self.wid]+list(args)
self._client.rpc_call("dbus", rpc_args, **kwargs)


def get_mouse_event_wid(self, *_args) -> int:
#used to be overridden in GTKClientWindowBase
return self.wid
Expand Down
3 changes: 0 additions & 3 deletions xpra/client/gui/ui_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@
if mixin_features.notifications:
from xpra.client.mixins.notifications import NotificationClient
CLIENT_BASES.append(NotificationClient)
if mixin_features.dbus:
from xpra.client.mixins.rpc import RPCClient
CLIENT_BASES.append(RPCClient)
if mixin_features.mmap:
from xpra.client.mixins.mmap import MmapClient
CLIENT_BASES.append(MmapClient)
Expand Down
113 changes: 0 additions & 113 deletions xpra/client/mixins/rpc.py

This file was deleted.

1 change: 0 additions & 1 deletion xpra/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ def enable_format(format_string:str) -> None:
"fps" : "Frames per second",
"xsettings" : "XSettings synchronization",
"dbus" : "DBUS calls",
"rpc" : "Remote Procedure Calls",
"menu" : "Menus",
"events" : "System and window events",
},
Expand Down
2 changes: 0 additions & 2 deletions xpra/net/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ class ConnectionClosedException(Exception):
"clipboard-contents", "clipboard-contents-none", "clipboard-pending-requests", "clipboard-enable-selections",
#notifications:
"notify_show", "notify_close",
#rpc:
"rpc-reply",
]

def get_log_packets(exclude=False) -> Tuple[str, ...]:
Expand Down
100 changes: 0 additions & 100 deletions xpra/server/mixins/dbusrpc.py

This file was deleted.

3 changes: 0 additions & 3 deletions xpra/server/server_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ def get_server_base_classes() -> Tuple[Type,...]:
if server_features.input_devices:
from xpra.server.mixins.input import InputServer
classes.append(InputServer)
if server_features.dbus:
from xpra.server.mixins.dbusrpc import DBUS_RPC_Server
classes.append(DBUS_RPC_Server)
if server_features.encoding:
from xpra.server.mixins.encoding import EncodingServer
classes.append(EncodingServer)
Expand Down
5 changes: 0 additions & 5 deletions xpra/server/source/client_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,3 @@ def set_deflate(self, level : int):
def send_client_command(self, *args):
if self.hello_sent:
self.send_more("control", *args)


def rpc_reply(self, *args):
if self.hello_sent:
self.send("rpc-reply", *args)

0 comments on commit 058f8f2

Please sign in to comment.