remove long-deprecated function
This commit is contained in:
parent
4a148b7bf6
commit
678acdec90
@ -32,21 +32,6 @@ void cellar::launch::launch_command(int argc, vector<string> args) {
|
||||
launch::launch_program(args);
|
||||
}
|
||||
|
||||
void cellar::launch::popen(string argv) {
|
||||
output::warning("use of deprecated string based function", true);
|
||||
output::statement("launching program: " + argv, true);
|
||||
vector<string> argvsplit;
|
||||
boost::algorithm::split(argvsplit, argv, boost::is_any_of(" "));
|
||||
string exec = argvsplit[0];
|
||||
vector<string> subargv;
|
||||
for (int curarg = 1; curarg < argvsplit.size(); curarg++) {
|
||||
subargv.push_back(argvsplit[curarg]);
|
||||
}
|
||||
auto subproc = subprocess::popen(exec, subargv);
|
||||
cout << subproc.stdout().rdbuf();
|
||||
cerr << subproc.stderr().rdbuf();
|
||||
}
|
||||
|
||||
void cellar::launch::popen(vector<string> argv) {
|
||||
output::statement("launching program: " + boost::algorithm::join(argv, " "), true);
|
||||
if (!dryrun) {
|
||||
|
Loading…
Reference in New Issue
Block a user