diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-04-09 16:05:33 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-04-09 16:05:33 +0200 |
commit | 3ff338efaf140a7d7d30e018144c4ab41044e446 (patch) | |
tree | 46639451d8acc578180b43e064d0430fca95843c | |
parent | b6ce5fa6dd940b89e9a6496883f7275d1ab0abcf (diff) | |
download | abrt-3ff338efaf140a7d7d30e018144c4ab41044e446.tar.gz abrt-3ff338efaf140a7d7d30e018144c4ab41044e446.tar.xz abrt-3ff338efaf140a7d7d30e018144c4ab41044e446.zip |
removed unneeded code
-rw-r--r-- | lib/CommLayer/CommLayerServerDBus.cpp | 21 | ||||
-rw-r--r-- | lib/CommLayer/CommLayerServerDBus.h | 1 | ||||
-rw-r--r-- | lib/CommLayer/DBusServerProxy.h | 14 |
3 files changed, 0 insertions, 36 deletions
diff --git a/lib/CommLayer/CommLayerServerDBus.cpp b/lib/CommLayer/CommLayerServerDBus.cpp index 5bcecf27..b4df14b9 100644 --- a/lib/CommLayer/CommLayerServerDBus.cpp +++ b/lib/CommLayer/CommLayerServerDBus.cpp @@ -42,27 +42,6 @@ vector_crash_infos_t CCommLayerServerDBus::GetCrashInfos(const std::string &pDBu return retval; } -dbus_vector_map_crash_infos_t CCommLayerServerDBus::GetCrashInfosMap(const std::string &pDBusSender) -{ - dbus_vector_map_crash_infos_t retval; - /*vector_crash_infos_t crash_info; - unsigned long unix_uid = m_pConn->sender_unix_uid(pDBusSender.c_str()); - try - { - crash_info = m_pMW->GetCrashInfos(to_string(unix_uid)); - } - catch(std::string err) - { - std::cerr << err << std::endl; - } - for (vector_crash_infos_t::iterator it = crash_info.begin(); it!=crash_info.end(); ++it) { - std::cerr << it->m_sExecutable << std::endl; - retval.push_back(it->GetMap()); - } - Notify("Sent crash info");*/ - return retval; -} - map_crash_report_t CCommLayerServerDBus::CreateReport(const std::string &pUUID,const std::string &pDBusSender) { unsigned long unix_uid = m_pConn->sender_unix_uid(pDBusSender.c_str()); diff --git a/lib/CommLayer/CommLayerServerDBus.h b/lib/CommLayer/CommLayerServerDBus.h index ba730ac3..01314af2 100644 --- a/lib/CommLayer/CommLayerServerDBus.h +++ b/lib/CommLayer/CommLayerServerDBus.h @@ -20,7 +20,6 @@ class CCommLayerServerDBus virtual ~CCommLayerServerDBus(); virtual vector_crash_infos_t GetCrashInfos(const std::string &pDBusSender); - virtual dbus_vector_map_crash_infos_t GetCrashInfosMap(const std::string &pDBusSender); virtual map_crash_report_t CreateReport(const std::string &pUUID,const std::string &pDBusSender); virtual bool Report(map_crash_report_t pReport); virtual bool DeleteDebugDump(const std::string& pUUID, const std::string& pDBusSender); diff --git a/lib/CommLayer/DBusServerProxy.h b/lib/CommLayer/DBusServerProxy.h index a79a8267..95b80f23 100644 --- a/lib/CommLayer/DBusServerProxy.h +++ b/lib/CommLayer/DBusServerProxy.h @@ -31,7 +31,6 @@ public: : DBus::InterfaceAdaptor(CC_DBUS_IFACE) { register_method(CDBusServer_adaptor, GetCrashInfos, _GetCrashInfos_stub); - register_method(CDBusServer_adaptor, GetCrashInfosMap, _GetCrashInfosMap_stub); register_method(CDBusServer_adaptor, CreateReport, _CreateReport_stub); register_method(CDBusServer_adaptor, Report, _Report_stub); register_method(CDBusServer_adaptor, DeleteDebugDump, _DeleteDebugDump_stub); @@ -89,7 +88,6 @@ public: * you will have to implement them in your ObjectAdaptor */ virtual vector_crash_infos_t GetCrashInfos(const std::string &pUID) = 0; - virtual dbus_vector_map_crash_infos_t GetCrashInfosMap(const std::string &pDBusSender) = 0; virtual map_crash_report_t CreateReport(const std::string &pUUID,const std::string &pDBusSender) = 0; virtual bool Report(map_crash_report_t pReport) = 0; virtual bool DeleteDebugDump(const std::string& pUUID, const std::string& pDBusSender) = 0; @@ -150,18 +148,6 @@ private: return reply; } - DBus::Message _GetCrashInfosMap_stub(const DBus::CallMessage &call) - { - DBus::MessageIter ri = call.reader(); - - std::string argin1; ri >> argin1; - dbus_vector_map_crash_infos_t argout1 = GetCrashInfosMap(call.sender()); - DBus::ReturnMessage reply(call); - DBus::MessageIter wi = reply.writer(); - wi << argout1; - return reply; - } - DBus::Message _Report_stub(const DBus::CallMessage &call) { DBus::MessageIter ri = call.reader(); |