You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2014/08/04 23:52:35 UTC
[3/5] git commit: Removed unused code from future.hpp.
Removed unused code from future.hpp.
Review: https://reviews.apache.org/r/23874
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/945264f5
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/945264f5
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/945264f5
Branch: refs/heads/master
Commit: 945264f5b0bb0fe389f62cedcbbb76beae6e1885
Parents: 81d830f
Author: Benjamin Mahler <bm...@twitter.com>
Authored: Wed Jul 23 19:02:43 2014 -0700
Committer: Benjamin Mahler <bm...@twitter.com>
Committed: Mon Aug 4 13:55:27 2014 -0700
----------------------------------------------------------------------
3rdparty/libprocess/include/process/future.hpp | 22 ---------------------
1 file changed, 22 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/945264f5/3rdparty/libprocess/include/process/future.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/future.hpp b/3rdparty/libprocess/include/process/future.hpp
index 5b0ed9b..e9966a2 100644
--- a/3rdparty/libprocess/include/process/future.hpp
+++ b/3rdparty/libprocess/include/process/future.hpp
@@ -901,28 +901,6 @@ void discard(const std::list<Future<T> >& futures)
}
-template <class T>
-void fail(const std::vector<Promise<T>*>& promises, const std::string& message)
-{
- typename std::vector<Promise<T>*>::const_iterator iterator;
- for (iterator = promises.begin(); iterator != promises.end(); ++iterator) {
- Promise<T>* promise = *iterator;
- promise->fail(message);
- }
-}
-
-
-template <class T>
-void fail(const std::list<Promise<T>*>& promises, const std::string& message)
-{
- typename std::list<Promise<T>*>::const_iterator iterator;
- for (iterator = promises.begin(); iterator != promises.end(); ++iterator) {
- Promise<T>* promise = *iterator;
- promise->fail(message);
- }
-}
-
-
template <typename T>
bool Promise<T>::discard(Future<T> future)
{