[gnome-system-monitor] Remove some dead code
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Remove some dead code
- Date: Thu, 25 Jul 2013 11:40:05 +0000 (UTC)
commit 915af4810061090de3b61aa5d575608e4f82f734
Author: Stefano Facchini <stefano facchini gmail com>
Date: Thu Jul 25 12:52:32 2013 +0200
Remove some dead code
src/util.h | 37 -------------------------------------
1 files changed, 0 insertions(+), 37 deletions(-)
---
diff --git a/src/util.h b/src/util.h
index 3b0d0b5..608cab8 100644
--- a/src/util.h
+++ b/src/util.h
@@ -11,21 +11,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)
@@ -59,28 +44,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
{
void size_cell_data_func(GtkTreeViewColumn *col, GtkCellRenderer *renderer,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]