]> iEval git - gruntmaster-data.git/blobdiff - lib/Gruntmaster/Data/Result/Problem.pm
Remove no longer useful is_private and is_in_archive methods
[gruntmaster-data.git] / lib / Gruntmaster / Data / Result / Problem.pm
index 2ce4f68524be60a712e1102adaf16f1170e3b625..cec4cc89bc4cf0ac6821a16c1b0a0e3c7514a11e 100644 (file)
@@ -332,18 +332,6 @@ after qw/insert update delete/ => sub {
        Gruntmaster::Data::purge '/sol/' . $self->id;
 };
 
-sub is_private {
-       my ($self, $time) = @_;
-       return 0 if grep { !$_->contest->is_pending($time) } $self->contest_problems;
-       return 1 if $self->private;
-       grep { $_->contest->is_pending($time) } $self->contest_problems;
-}
-
-sub is_in_archive {
-       my ($self, $time) = @_;
-       0 == grep { $_->contest->is_running($time) } $self->contest_problems;
-}
-
 sub rerun {
        $_->rerun for shift->jobs
 }
@@ -354,14 +342,6 @@ __END__
 
 =head1 METHODS
 
-=head2 is_private(I<[$time]>)
-
-Returns true if the problem is private at time I<$time> (which defaults to C<time>).
-
-=head2 is_in_archive(I<[$time]>)
-
-Returns true if the problem is in the archive at time I<$time> (which defaults to C<time>).
-
 =head2 rerun
 
 Reruns all jobs for this problem.
This page took 0.01719 seconds and 4 git commands to generate.