Skip to content

Commit

Permalink
Remove redundant definition of 'identity'
Browse files Browse the repository at this point in the history
Julia already defines Base.identity with the correct semantics
  • Loading branch information
fingolfin committed Aug 22, 2023
1 parent 1d474ab commit 9731230
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 9731230

Please sign in to comment.