Skip to content

Commit

Permalink
Clean up some unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
somiaj committed Feb 15, 2024
1 parent e9449f6 commit abed71b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/WeBWorK/ContentGenerator/Instructor/Stats.pm
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ sub set_stats ($c) {
# Only count top level problems for Jitar sets.
my $num_problems = $isJitarSet ? scalar(keys %topLevelProblems) : scalar(@problems);

my $filter = $c->param('filter');
my ($students, $filters) = $c->filter_students;
for my $studentRecord (@$students) {
my $student = $studentRecord->user_id;
Expand Down Expand Up @@ -362,7 +361,6 @@ sub problem_stats ($c) {
my $db = $c->db;
my $ce = $c->ce;
my $user = $c->param('user');
my $filter = $c->param('filter');
my $courseID = $c->stash('courseID');
my $problemID = $c->stash('problemID');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
</label>
</div>
</div>
% if (param('filter')) {
<%= hidden_field filter => param('filter') =%>
% if ($filter) {
<%= hidden_field filter => $filter =%>
% }
% if ($primary_sort_method) {
<%= hidden_field primary_sort => $primary_sort_method =%>
Expand Down

0 comments on commit abed71b

Please sign in to comment.