[gnote] Remove unused remote control client



commit e4bb208af90a43ba833810d2496c0ced1620ad99
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Mon Mar 1 23:16:53 2021 +0200

    Remove unused remote control client

 src/remotecontrolproxy.cpp | 17 +----------------
 src/remotecontrolproxy.hpp |  6 +-----
 2 files changed, 2 insertions(+), 21 deletions(-)
---
diff --git a/src/remotecontrolproxy.cpp b/src/remotecontrolproxy.cpp
index eb65a36a..3ae20568 100644
--- a/src/remotecontrolproxy.cpp
+++ b/src/remotecontrolproxy.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2011,2013,2017,2019 Aurimas Cernius
+ * Copyright (C) 2011,2013,2017,2019,2021 Aurimas Cernius
  * Copyright (C) 2009 Hubert Figuiere
  *
  * This program is free software: you can redistribute it and/or modify
@@ -24,7 +24,6 @@
 
 #include "debug.hpp"
 #include "dbus/remotecontrol.hpp"
-#include "dbus/remotecontrolclient.hpp"
 #include "dbus/searchprovider.hpp"
 #include "remotecontrolproxy.hpp"
 #include "sharp/files.hpp"
@@ -69,20 +68,6 @@ RemoteControlProxy::RemoteControlProxy(IGnote & g)
 {
 }
 
-Glib::RefPtr<RemoteControlClient> RemoteControlProxy::get_instance()
-{
-  if(m_remote_control_proxy) {
-    return m_remote_control_proxy;
-  }
-  if(!m_connection) {
-    return Glib::RefPtr<RemoteControlClient>();
-  }
-
-  load_introspection_xml();
-  return m_remote_control_proxy = Glib::RefPtr<RemoteControlClient>(
-    new RemoteControlClient(m_connection, GNOTE_SERVER_PATH, GNOTE_SERVER_NAME, GNOTE_INTERFACE_NAME, 
m_gnote_interface));
-}
-
 RemoteControl *RemoteControlProxy::get_remote_control()
 {
   return m_remote_control;
diff --git a/src/remotecontrolproxy.hpp b/src/remotecontrolproxy.hpp
index 2756d2fa..1952ec5b 100644
--- a/src/remotecontrolproxy.hpp
+++ b/src/remotecontrolproxy.hpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2011,2013,2019 Aurimas Cernius
+ * Copyright (C) 2011,2013,2019,2021 Aurimas Cernius
  * Copyright (C) 2009 Hubert Figuiere
  *
  * This program is free software: you can redistribute it and/or modify
@@ -37,7 +37,6 @@ namespace gnote {
 
 class IGnote;
 class RemoteControl;
-class RemoteControlClient;
 class NoteManagerBase;
 
 class RemoteControlProxy 
@@ -54,8 +53,6 @@ public:
 
   explicit RemoteControlProxy(IGnote & g);
 
-  /** Get a dbus client */
-  Glib::RefPtr<RemoteControlClient> get_instance();
   RemoteControl *get_remote_control();
   void register_remote(NoteManagerBase & manager, const slot_name_acquire_finish & on_finish);
   void register_object(const Glib::RefPtr<Gio::DBus::Connection> & conn, NoteManagerBase & manager,
@@ -74,7 +71,6 @@ private:
   Glib::RefPtr<Gio::DBus::Connection> m_connection;
   Glib::RefPtr<Gio::DBus::InterfaceInfo> m_gnote_interface;
   Glib::RefPtr<Gio::DBus::InterfaceInfo> m_search_provider_interface;
-  Glib::RefPtr<RemoteControlClient> m_remote_control_proxy;
   slot_name_acquire_finish m_on_name_acquire_finish;
 };
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]