mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-31 16:02:43 +01:00 
			
		
		
		
	removed commented useless runtime errors
This commit is contained in:
		| @@ -69,7 +69,6 @@ inline FILE* open(const std::string& cmd, int& pid) { | |||||||
|   if (cmd == "") return nullptr; |   if (cmd == "") return nullptr; | ||||||
|   int fd[2]; |   int fd[2]; | ||||||
|   if (pipe(fd) != 0){ |   if (pipe(fd) != 0){ | ||||||
|     // std::runtime_error("Couldn't open a file descriptor"); |  | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   pid_t child_pid = fork(); |   pid_t child_pid = fork(); | ||||||
|   | |||||||
| @@ -22,7 +22,6 @@ Ipc::~Ipc() { | |||||||
|   } |   } | ||||||
|   if (fd_event_ > 0) { |   if (fd_event_ > 0) { | ||||||
|     if (write(fd_event_, "close-sway-ipc", 14) == -1) { |     if (write(fd_event_, "close-sway-ipc", 14) == -1) { | ||||||
|        //std::runtime_error("Couldn't close Sway IPC through fd_event"); |  | ||||||
|     } |     } | ||||||
|     close(fd_event_); |     close(fd_event_); | ||||||
|     fd_event_ = -1; |     fd_event_ = -1; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 mazunki
					mazunki