Skip to content

Commit

Permalink
Remove redundant definition of 'identity' (#1526)
Browse files Browse the repository at this point in the history
Julia already defines Base.identity with the correct semantics
  • Loading branch information
fingolfin authored Aug 22, 2023
1 parent 1d474ab commit 1f15e5e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/embedding/embedding.jl
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ function embed(k::T, K::T) where T <: FinField
# Special cases of k == K or degree(k) == 1

if k == K
identity(x) = x
morph = FinFieldMorphism(k, k, identity, identity)
return morph

Expand Down

0 comments on commit 1f15e5e

Please sign in to comment.