Skip to content

Commit a0cd81e

Browse files
committed
Remove stale check
Any objects with `call` method can be accepted as trap handlers, and the check for `Proc` type is useless since ruby/ruby@29f5911cf545.
1 parent 9aa9cf8 commit a0cd81e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

signal.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,11 +1252,6 @@ trap_handler(VALUE *cmd, int sig)
12521252
break;
12531253
}
12541254
}
1255-
else {
1256-
rb_proc_t *proc;
1257-
GetProcPtr(*cmd, proc);
1258-
(void)proc;
1259-
}
12601255
}
12611256

12621257
return func;

0 commit comments

Comments
 (0)