Skip to content

Commit

Permalink
Remove the contextCurrency.pl set method override.
Browse files Browse the repository at this point in the history
The only thing the override did was call the `update` method to force
patterns to be updated.  This is no longer needed since uddate is now
always called by the SUPER method when tokens are added.  This was
changed in openwebwork#518 and openwebwork#526.
  • Loading branch information
drgrice1 committed Jun 8, 2023
1 parent 0952c04 commit 2c50e9c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions macros/contexts/contextCurrency.pl
Original file line number Diff line number Diff line change
Expand Up @@ -328,17 +328,6 @@ sub init {
sub addToken { } # no tokens are needed (only uses fixed pattern)
sub removeToken { }

#
# Do the usual set() method, but make sure patterns are
# updated, since the settings may affect the currency
# pattern.
#
sub set {
my $self = shift;
$self->SUPER::set(@_);
$self->update;
}

#
# Create, set and remove extra currency symbols
#
Expand Down

0 comments on commit 2c50e9c

Please sign in to comment.