remove fishy part in normalform! that was never hit

This commit is contained in:
Marek Kaluba 2021-06-21 17:54:05 +02:00
parent 39f4ef4b5f
commit 7d5c7ac623
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15
1 changed files with 0 additions and 3 deletions

View File

@ -42,8 +42,5 @@ Defaults to the rewriting in the free group.
"""
@inline function normalform!(res::AbstractWord, g::FPGroupElement)
isone(res) && isnormalform(g) && return append!(res, word(g))
if isnormalform(g) && inv(alphabet(g), last(out)) != first(word(g))
return append!(res, word(g))
end
return KnuthBendix.rewrite_from_left!(res, word(g), rewriting(parent(g)))
end