From c3a7bac3a8effab522dc0b38b6d6dd0b0eb5add2 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 25 Jan 2015 13:53:27 +0200 Subject: [PATCH] Remove purges (as they are now unnecessary) --- lib/Gruntmaster/Daemon.pm | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/Gruntmaster/Daemon.pm b/lib/Gruntmaster/Daemon.pm index 6fef26d..ed24158 100644 --- a/lib/Gruntmaster/Daemon.pm +++ b/lib/Gruntmaster/Daemon.pm @@ -33,8 +33,6 @@ use constant FORMAT_EXTENSION => { ################################################## -sub purge; - my $db; sub safe_can_nodie { @@ -144,12 +142,6 @@ sub process{ owner => $jobr->owner, job => $jobr->id, solved => $solved}) if !$jobr->problem->private; - - purge '/log/'; - purge "/log/$job"; - purge '/st/' . $jobr->contest if $jobr->contest; - purge '/us/'; - purge '/us/' . $jobr->owner; } sub got_job{ @@ -171,7 +163,6 @@ sub got_job{ sub run{ warn "No GRUNTMASTER_VM environment variable. Running without a VM is a security risk.\n" unless $ENV{GRUNTMASTER_VM}; require Gruntmaster::Data; - Gruntmaster::Data->import; $db = Gruntmaster::Data->connect('dbi:Pg:'); Log::Log4perl->init('/etc/gruntmasterd/gruntmasterd-log.conf'); get_logger->info("gruntmasterd $VERSION started"); -- 2.39.2