From 70a8a9b72d7aeaa8aa9f53f3d7a986d380e68726 Mon Sep 17 00:00:00 2001 From: kalmar Date: Fri, 21 Jul 2017 16:02:07 +0200 Subject: [PATCH] get rid of the old parent stuff --- src/WreathProducts.jl | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/WreathProducts.jl b/src/WreathProducts.jl index 461b302..9f850c2 100644 --- a/src/WreathProducts.jl +++ b/src/WreathProducts.jl @@ -84,22 +84,15 @@ function (G::WreathProduct)(g::WreathProductElem) catch throw("Can't coerce $(g.p) to $(G.P) factor of $G") end - elt = WreathProductElem(n, p) - # elt.parent = G - return elt + return WreathProductElem(n, p) end doc""" (G::WreathProduct)(n::DirectProductGroupElem, p::perm) > Creates an element of wreath product `G` by coercing `n` and `p` to `G.N` and > `G.P`, respectively. - """ -function (G::WreathProduct)(n::DirectProductGroupElem, p::perm) - result = WreathProductElem(n,p) - # result.parent = G - return result -end +(G::WreathProduct)(n::DirectProductGroupElem, p::perm) = WreathProductElem(n,p) (G::WreathProduct)() = WreathProductElem(G.N(), G.P(), false)