Commented out unused code.
This commit is contained in:
parent
1b0fd8cd75
commit
dcef2b8a28
|
@ -79,35 +79,35 @@ int launch(const string &args)
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
string args = read_input();
|
string args = read_input();
|
||||||
size_t pos = args.find("TEMPFILE");
|
// size_t pos = args.find("TEMPFILE");
|
||||||
string tmpfile;
|
// string tmpfile;
|
||||||
|
|
||||||
if (pos != string::npos)
|
// if (pos != string::npos)
|
||||||
{
|
// {
|
||||||
try
|
// try
|
||||||
{
|
// {
|
||||||
tmpfile = fs::temp_directory_path() / "remwharead.html";
|
// tmpfile = fs::temp_directory_path() / "remwharead.html";
|
||||||
args.replace(pos, 8, tmpfile);
|
// args.replace(pos, 8, tmpfile);
|
||||||
}
|
// }
|
||||||
catch (const fs::filesystem_error &e)
|
// catch (const fs::filesystem_error &e)
|
||||||
{
|
// {
|
||||||
send_message("Could not create temporary file.");
|
// send_message("Could not create temporary file.");
|
||||||
return 3;
|
// return 3;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
int ret = launch(args);
|
int ret = launch(args);
|
||||||
|
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
{
|
{
|
||||||
if (!tmpfile.empty())
|
// if (!tmpfile.empty())
|
||||||
{
|
// {
|
||||||
send_message("FILE:" + tmpfile);
|
// send_message("FILE:" + tmpfile);
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
send_message("Command successful.");
|
send_message("Command successful.");
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue