Skip to content

Commit

Permalink
Remove two redundant dict writes
Browse files Browse the repository at this point in the history
get! already stores these
  • Loading branch information
fingolfin committed Sep 19, 2024
1 parent 9e515ff commit 250b7e8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/number/NumberTypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ mutable struct Integers <: Ring
return get!(IntegersID, :ZZ) do
ptr = libSingular.nInitChar(libSingular.n_Z, Ptr{Nothing}(0))
d = new(ptr, 0)
IntegersID[:ZZ] = d
finalizer(_Ring_finalizer, d)
return d
end::Integers
Expand Down Expand Up @@ -78,7 +77,6 @@ mutable struct Rationals <: Field
return get!(RationalsID, :QQ) do
ptr = libSingular.nInitChar(libSingular.n_Q, Ptr{Nothing}(0))
d = new(ptr, 0)
RationalsID[:QQ] = d
finalizer(_Ring_finalizer, d)
return d
end::Rationals
Expand Down

0 comments on commit 250b7e8

Please sign in to comment.