From: Marius Gavrilescu Date: Sun, 25 Jan 2015 11:53:27 +0000 (+0200) Subject: Remove purges (as they are now unnecessary) X-Git-Tag: 5999.000_005~81 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=c3a7bac3a8effab522dc0b38b6d6dd0b0eb5add2;p=gruntmaster-daemon.git Remove purges (as they are now unnecessary) --- 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");