You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2015/10/15 01:33:38 UTC

mesos git commit: Removed hashmap::existsValue since it is never called.

Repository: mesos
Updated Branches:
  refs/heads/master cb65efefd -> edd520b3e


Removed hashmap::existsValue since it is never called.

Review: https://reviews.apache.org/r/37955


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/edd520b3
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/edd520b3
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/edd520b3

Branch: refs/heads/master
Commit: edd520b3e914e5f276839f5fecacc98a069af115
Parents: cb65efe
Author: Jian Qiu <qi...@cn.ibm.com>
Authored: Wed Oct 14 16:33:03 2015 -0700
Committer: Vinod Kone <vi...@gmail.com>
Committed: Wed Oct 14 16:33:03 2015 -0700

----------------------------------------------------------------------
 .../3rdparty/stout/include/stout/hashmap.hpp    | 26 --------------------
 1 file changed, 26 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/edd520b3/3rdparty/libprocess/3rdparty/stout/include/stout/hashmap.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/hashmap.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/hashmap.hpp
index f09bea1..51ec758 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/hashmap.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/hashmap.hpp
@@ -139,32 +139,6 @@ public:
     }
     return result;
   }
-
-  // Checks whether there exists a value in this map that returns the
-  // a result equal to 'r' when the specified method is invoked.
-  template <typename R, typename T>
-  bool existsValue(R (T::*method)(), R r) const
-  {
-    foreachvalue (const Value& value, *this) {
-      const T* t = boost::get_pointer(value);
-      if (t->*method() == r) {
-        return true;
-      }
-    }
-  }
-
-  // Checks whether there exists a value in this map whose specified
-  // member is equal to 'r'.
-  template <typename R, typename T>
-  bool existsValue(R (T::*member), R r) const
-  {
-    foreachvalue (const Value& value, *this) {
-      const T* t = boost::get_pointer(value);
-      if (t->*member == r) {
-        return true;
-      }
-    }
-  }
 };
 
 #endif // __STOUT_HASHMAP_HPP__