summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/util.h b/src/util.h
index 3d6ef47..38766f1 100644
--- a/src/util.h
+++ b/src/util.h
@@ -13,21 +13,6 @@
using std::string;
-template<typename T>
-inline int procman_cmp(T x, T y)
-{
- if (x == y)
- return 0;
-
- if (x < y)
- return -1;
-
- return 1;
-}
-
-#define PROCMAN_CMP(X, Y) procman_cmp((X), (Y))
-#define PROCMAN_RCMP(X, Y) procman_cmp((Y), (X));
-
/* check if logind is running */
#define LOGIND_RUNNING() (access("/run/systemd/seats/", F_OK) >= 0)
@@ -61,28 +46,6 @@ inline string make_string(char *c_str)
}
-
-
-template<typename Map>
-class UnrefMapValues
- : public std::unary_function<void, Map>
-{
-public:
- void operator()(const typename Map::value_type &it) const
- {
- if (it.second)
- g_object_unref(it.second);
- }
-};
-
-
-template<typename Map>
-inline void unref_map_values(Map &map)
-{
- std::for_each(map.begin(), map.end(), UnrefMapValues<Map>());
-}
-
-
namespace procman
{
gchar* format_duration_for_display(unsigned centiseconds);