Skip to content

Commit 97a0ab5

Browse files
authored
Merge pull request #1059 from drgrice1/translator-dup-pod
Remove some accidentally duplicated POD.
2 parents 97fa82a + 582b93a commit 97a0ab5

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

lib/WeBWorK/PG/Translator.pm

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -72,43 +72,6 @@ use WWSafe;
7272
use PGUtil qw(pretty_print);
7373
use WeBWorK::PG::IO qw(fileFromPath);
7474

75-
=head1 NAME
76-
77-
WeBWorK::PG::Translator - Evaluate PG code and evaluate answers safely
78-
79-
=head1 SYNPOSIS
80-
81-
my $pt = new WeBWorK::PG::Translator; # create a translator
82-
$pt->environment(\%envir); # provide the environment variable for the problem
83-
$pt->initialize(); # initialize the translator
84-
$pt-> set_mask(); # set the operation mask for the translator safe compartment
85-
$pt->source_string($source); # provide the source string for the problem
86-
87-
# Load the unprotected macro files.
88-
# These files are evaluated with the Safe compartment wide open.
89-
# Other macros are loaded from within the problem using loadMacros.
90-
$pt->unrestricted_load("${courseScriptsDirectory}PG.pl");
91-
92-
$pt->translate(); # translate the problem (the following pieces of information are created)
93-
94-
$PG_PROBLEM_TEXT_ARRAY_REF = $pt->ra_text(); # output text for the body of the HTML file (in array form)
95-
$PG_PROBLEM_TEXT_REF = $pt->r_text(); # output text for the body of the HTML file
96-
$PG_HEADER_TEXT_REF = $pt->r_header; # text for the header of the HTML file
97-
$PG_POST_HEADER_TEXT_REF = $pt->r_post_header
98-
$PG_ANSWER_HASH_REF = $pt->rh_correct_answers; # a hash of answer evaluators
99-
$PG_FLAGS_REF = $pt->rh_flags; # misc. status flags.
100-
101-
$pt->process_answers; # evaluates all of the answers
102-
103-
my $rh_answer_results = $pt->rh_evaluated_answers; # provides a hash of the results of evaluating the answers.
104-
my $rh_problem_result = $pt->grade_problem; # grades the problem using the default problem grading method.
105-
106-
=head1 DESCRIPTION
107-
108-
This module defines an object which will translate a problem written in the Problem Generating (PG) language
109-
110-
=cut
111-
11275
BEGIN {
11376
# Setup the safe compartment for the standalone renderer.
11477
if (exists $ENV{MOJO_MODE}) {

0 commit comments

Comments
 (0)