Skip to content

Commit

Permalink
Clean up some aliases (#1570)
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored Nov 2, 2023
1 parent b673463 commit 11fcb90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 4 additions & 0 deletions src/Aliases.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,7 @@
@alias MPolyElem MPolyRingElem

@alias FiniteField finite_field

@alias NumberField number_field
@alias CyclotomicField cyclotomic_field
@alias CyclotomicRealSubfield cyclotomic_real_subfield
5 changes: 0 additions & 5 deletions src/Nemo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ export QQBar
export ZZ, QQ, finite_field, number_field


# FIXME/TODO: for compatibility with AbstractAlgebra before 0.28.x; remove in the future
@alias PolyRingElem PolyRingElem
@alias MPolyRingElem MPolyRingElem


###############################################################################
#
# Set up environment / load libraries
Expand Down
3 changes: 0 additions & 3 deletions src/antic/nf_elem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,6 @@ function number_field(f::QQPolyRingElem, s::VarName = "_a"; cached::Bool = true,

return parent_obj, gen(parent_obj)
end
@alias NumberField number_field

@doc raw"""
cyclotomic_field(n::Int, s::VarName = "z_$n", t = "_\$"; cached = true)
Expand All @@ -1204,7 +1203,6 @@ function cyclotomic_field(n::Int, s::VarName = "z_$n", t = "_\$"; cached = true)
set_attribute!(C, :show => show_cyclo, :cyclo => n)
return C, g
end
@alias CyclotomicField cyclotomic_field

function show_cyclo(io::IO, a::AnticNumberField)
@assert is_cyclo_type(a)
Expand All @@ -1231,7 +1229,6 @@ function cyclotomic_real_subfield(n::Int, s::VarName = "(z_$n + 1/z_$n)", t = "\
set_attribute!(R, :show => show_maxreal, :maxreal => n)
return R, a
end
@alias CyclotomicRealSubfield cyclotomic_real_subfield

function show_maxreal(io::IO, a::AnticNumberField)
print(io, "Maximal real subfield of cyclotomic field of order $(get_attribute(a, :maxreal))")
Expand Down

0 comments on commit 11fcb90

Please sign in to comment.