mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject [20/28] git commit: Removed unused local::launch overload.
Date Sun, 26 May 2013 16:57:45 GMT
Removed unused local::launch overload.

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


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

Branch: refs/heads/master
Commit: 5e87116047fd16da5a6923b7ce3f558c76520644
Parents: 5690d20
Author: Benjamin Hindman <benh@twitter.com>
Authored: Sun May 12 14:21:37 2013 -0700
Committer: Benjamin Hindman <benh@twitter.com>
Committed: Sun May 26 00:13:41 2013 -0700

----------------------------------------------------------------------
 src/local/local.cpp |   20 --------------------
 src/local/local.hpp |   17 +++--------------
 2 files changed, 3 insertions(+), 34 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mesos/blob/5e871160/src/local/local.cpp
----------------------------------------------------------------------
diff --git a/src/local/local.cpp b/src/local/local.cpp
index f43ab2a..eb33e5d 100644
--- a/src/local/local.cpp
+++ b/src/local/local.cpp
@@ -73,26 +73,6 @@ static map<Isolator*, Slave*> slaves;
 static MasterDetector* detector = NULL;
 static Files* files = NULL;
 
-PID<Master> launch(
-    int numSlaves,
-    double cpus,
-    uint64_t mem,
-    uint64_t disk,
-    bool quiet,
-    Allocator* _allocator)
-{
-  Configuration configuration;
-  configuration.set("slaves", "*");
-  configuration.set("num_slaves", numSlaves);
-  configuration.set("quiet", quiet);
-
-  stringstream out;
-  out << "cpus:" << cpus << ";" << "mem:" << mem << ";"
<< "disk:" << disk;
-  configuration.set("resources", out.str());
-
-  return launch(configuration, _allocator);
-}
-
 
 PID<Master> launch(const Configuration& configuration, Allocator* _allocator)
 {

http://git-wip-us.apache.org/repos/asf/incubator-mesos/blob/5e871160/src/local/local.hpp
----------------------------------------------------------------------
diff --git a/src/local/local.hpp b/src/local/local.hpp
index 2633d25..51324e2 100644
--- a/src/local/local.hpp
+++ b/src/local/local.hpp
@@ -36,21 +36,10 @@ class Configuration;
 
 namespace local {
 
-
-// Launch a local cluster with a given number of slaves and given numbers
-// of CPUs and memory per slave. Additionally one can also toggle whether
-// to initialize Google Logging and whether to log quietly.
-process::PID<master::Master> launch(int numSlaves,
-                                    double cpus,
-                                    uint64_t mem,
-                                    uint64_t disk,
-                                    bool quiet,
-                                    master::Allocator* _allocator = NULL);
-
-
 // Launch a local cluster with a given configuration.
-process::PID<master::Master> launch(const Configuration& configuration,
-                                    master::Allocator* _allocator = NULL);
+process::PID<master::Master> launch(
+    const Configuration& configuration,
+    master::Allocator* _allocator = NULL);
 
 
 void shutdown();


Mime
View raw message