From dc2c4085936c4768bbfa03260dfd93ebaa3f8fad Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 1 Mar 2016 15:08:41 +0300 Subject: drop weird matesu support (did matesu ever exist?!) --- src/Makefile.am | 1 - src/procdialogs.cpp | 3 --- src/procman_matesu.cpp | 40 ---------------------------------------- src/procman_matesu.h | 12 ------------ 4 files changed, 56 deletions(-) delete mode 100644 src/procman_matesu.cpp delete mode 100644 src/procman_matesu.h (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 4e2eda4..38588e9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -27,7 +27,6 @@ mate_system_monitor_cpp_files = \ disks.cpp \ selinux.cpp \ cgroups.cpp \ - procman_matesu.cpp \ procman_gksu.cpp \ sysinfo.cpp \ lsof.cpp \ diff --git a/src/procdialogs.cpp b/src/procdialogs.cpp index c84eb07..f76d639 100644 --- a/src/procdialogs.cpp +++ b/src/procdialogs.cpp @@ -33,7 +33,6 @@ #include "util.h" #include "load-graph.h" #include "settings-keys.h" -#include "procman_matesu.h" #include "procman_gksu.h" #include "cgroups.h" @@ -884,8 +883,6 @@ procdialog_create_root_password_dialog(ProcmanActionType type, if (procman_has_gksu()) ret = procman_gksu_create_root_password_dialog(command); - else if (procman_has_matesu()) - ret = procman_matesu_create_root_password_dialog(command); g_free(command); return ret; diff --git a/src/procman_matesu.cpp b/src/procman_matesu.cpp deleted file mode 100644 index b7c08ad..0000000 --- a/src/procman_matesu.cpp +++ /dev/null @@ -1,40 +0,0 @@ -#include - -#include - -#include "procman.h" -#include "procman_matesu.h" -#include "util.h" - -gboolean (*matesu_exec)(const char *commandline); - - -static void -load_matesu(void) -{ - static gboolean init; - - if (init) - return; - - init = TRUE; - - load_symbols("libmatesu.so.0", - "matesu_exec", &matesu_exec, - NULL); -} - - -gboolean -procman_matesu_create_root_password_dialog(const char *command) -{ - return matesu_exec(command); -} - - -gboolean -procman_has_matesu(void) -{ - load_matesu(); - return matesu_exec != NULL; -} diff --git a/src/procman_matesu.h b/src/procman_matesu.h deleted file mode 100644 index fb1a893..0000000 --- a/src/procman_matesu.h +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef H_MATE_SYSTEM_MONITOR_MATESU_H_1132171917 -#define H_MATE_SYSTEM_MONITOR_MATESU_H_1132171917 - -#include - -gboolean -procman_matesu_create_root_password_dialog(const char * message); - -gboolean -procman_has_matesu(void) G_GNUC_CONST; - -#endif /* H_MATE_SYSTEM_MONITOR_MATESU_H_1132171917 */ -- cgit v1.2.1