mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor: remove useless tmp variable
This commit is contained in:
@ -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:
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user