diff --git a/src/proc.cpp b/src/proc.cpp index 1390c027b..b6117d90f 100644 --- a/src/proc.cpp +++ b/src/proc.cpp @@ -701,10 +701,6 @@ bool terminal_give_to_job(const job_t *j, bool restore_attrs) { return true; } - // RAII wrappers must have a name so that their scope is tied to the function as it is legal for - // the compiler to construct and then immediately deconstruct unnamed objects otherwise. - signal_block_t signal_block; - // It may not be safe to call tcsetpgrp if we've already done so, as at that point we are no // longer the controlling process group for the terminal and no longer have permission to set // the process group that is in control, causing tcsetpgrp to return EPERM, even though that's diff --git a/src/signal.h b/src/signal.h index fa5af8682..be0e1d23b 100644 --- a/src/signal.h +++ b/src/signal.h @@ -41,16 +41,4 @@ bool signal_is_blocked(); /// Returns signals with non-default handlers. void get_signals_with_handlers(sigset_t *set); -/// A RAII wrapper for signal_block/signal_unblock that triggers a signal block on creation, and then -/// automatically releases the block when the object is destroyed, handling control flow and exceptions. -struct signal_block_t { - signal_block_t() { - signal_block(); - } - - ~signal_block_t() { - signal_unblock(); - } -}; - #endif