Remove obsolete code from wrapper.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8db8f97bde
commit
d746b8c266
|
@ -78,40 +78,18 @@ int launch(const string &args)
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
string args = read_input();
|
const string args = read_input();
|
||||||
// size_t pos = args.find("TEMPFILE");
|
|
||||||
// string tmpfile;
|
|
||||||
|
|
||||||
// if (pos != string::npos)
|
|
||||||
// {
|
|
||||||
// try
|
|
||||||
// {
|
|
||||||
// tmpfile = fs::temp_directory_path() / "remwharead.html";
|
|
||||||
// args.replace(pos, 8, tmpfile);
|
|
||||||
// }
|
|
||||||
// catch (const fs::filesystem_error &e)
|
|
||||||
// {
|
|
||||||
// send_message("Could not create temporary file.");
|
|
||||||
// return 3;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
int ret = launch(args);
|
int ret = launch(args);
|
||||||
|
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
{
|
{
|
||||||
// if (!tmpfile.empty())
|
send_message("Command successful.");
|
||||||
// {
|
|
||||||
// send_message("FILE:" + tmpfile);
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
send_message("Command successful.");
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
send_message("Command failed with status: " + std::to_string(ret) + '.');
|
send_message("Command failed with status: "
|
||||||
|
+ std::to_string(ret) + '.');
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue