diff options
Diffstat (limited to 'src/web/server/h2o/libh2o/misc/p5-Server-Starter/lib/Server/Starter/Guard.pm')
-rw-r--r-- | src/web/server/h2o/libh2o/misc/p5-Server-Starter/lib/Server/Starter/Guard.pm | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/web/server/h2o/libh2o/misc/p5-Server-Starter/lib/Server/Starter/Guard.pm b/src/web/server/h2o/libh2o/misc/p5-Server-Starter/lib/Server/Starter/Guard.pm deleted file mode 100644 index f25b49c17..000000000 --- a/src/web/server/h2o/libh2o/misc/p5-Server-Starter/lib/Server/Starter/Guard.pm +++ /dev/null @@ -1,21 +0,0 @@ -package Server::Starter::Guard; - -use strict; -use warnings; - -sub new { - my ($klass, $handler) = @_; - return bless { - handler => $handler, - active => 1, - }, $klass; -} - -sub dismiss { shift->{active} = 0 } - -sub DESTROY { - my $self = shift; - $self->{active} && $self->{handler}->(); -} - -1; |