show should be implemented for concrete subtypes of GSymbol

This commit is contained in:
kalmar 2017-05-11 17:38:07 +02:00
parent eb71dfe26e
commit ba3ca8a0ba
1 changed files with 0 additions and 9 deletions

View File

@ -21,15 +21,6 @@ doc"""
"""
abstract GSymbol
function show(io::IO, s::GSymbol)
if s.pow == 0
print(io, "(id)")
elseif s.pow == 1
print(io, s.gen)
else
print(io, (s.gen)*"^$(s.pow)")
end
end
length(s::GSymbol) = (s.pow == 0 ? 0 : 1)