refactor: remove useless tmp variable

This commit is contained in:
Alexis
2018-11-01 09:27:00 +01:00
parent 0670225e69
commit 9d4048983d
5 changed files with 24 additions and 40 deletions

View File

@ -18,9 +18,6 @@ class ALabel : public IModule {
Gtk::Label label_;
const Json::Value& config_;
std::string format_;
std::string button_press_cmd_ = "";
std::string scroll_up_cmd_ = "";
std::string scroll_down_cmd_ = "";
std::mutex mutex_;
private:

View File

@ -35,7 +35,6 @@ inline struct res exec(const std::string cmd)
inline bool forkExec(std::string cmd) {
if (cmd == "") return true;
printf("fork exec command %s\n", cmd.c_str());
int32_t pid = fork();
if (pid < 0) {