Skip to content

Commit

Permalink
Remove wildly general check_parent (#1205)
Browse files Browse the repository at this point in the history
* Experiment: remove wildly general `check_parent`

* Fix `+(::GenOrdIdl, ::GenOrdIdl)`
  • Loading branch information
lgoettgens authored Sep 13, 2023
1 parent 7fc2453 commit c591959
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions src/GenOrd/Ideal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,7 @@ end


function Base.:(+)(a::GenOrdIdl, b::GenOrdIdl)
check_parent(a, b)
O = order(a)
@req order(a) === order(b) "Ideals must have same order"

if iszero(a)
return b
Expand Down
4 changes: 0 additions & 4 deletions src/NumField/NfRel/NfRel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,6 @@ function add!(c::NfRelElem{T}, a::NfRelElem{T}, b::NfRelElem{T}) where {T}
return c
end

function check_parent(a, b)
return a==b
end

################################################################################
#
# Hash function
Expand Down

0 comments on commit c591959

Please sign in to comment.