Remove purges (as they are now unnecessary)
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 25 Jan 2015 11:53:27 +0000 (13:53 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 25 Jan 2015 11:53:27 +0000 (13:53 +0200)
lib/Gruntmaster/Daemon.pm

index 6fef26d..ed24158 100644 (file)
@@ -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");
This page took 0.029308 seconds and 4 git commands to generate.