Skip to content

Commit

Permalink
Merge d0e9fee into 409d74e
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored Dec 20, 2024
2 parents 409d74e + d0e9fee commit 17a675d
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ function parent_type(::Type{T}) where {ParentType, T<:VarietyFunctionFieldElem{<
end

base_ring(KK::VarietyFunctionField) = base_ring(representative_field(KK))
base_ring(a::VarietyFunctionFieldElem) = base_ring(parent(a))
is_domain_type(::Type{T}) where {T<:VarietyFunctionFieldElem} = true
is_exact_type(::Type{T}) where {T<:VarietyFunctionFieldElem} = true

Expand Down
2 changes: 1 addition & 1 deletion src/AlgebraicGeometry/Schemes/FunctionField/Types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ end
########################################################################
mutable struct VarietyFunctionFieldElem{FracType<:AbstractAlgebra.Generic.FracFieldElem,
ParentType<:VarietyFunctionField
}
} <: FieldElem
KK::ParentType
f::FracType

Expand Down
2 changes: 0 additions & 2 deletions src/Rings/PBWAlgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ coefficient_ring(a::PBWAlgElem) = coefficient_ring(parent(a))

base_ring(a::PBWAlgRing) = a.poly_ring

base_ring(a::PBWAlgElem) = base_ring(parent(a))

function Base.deepcopy_internal(a::PBWAlgElem, dict::IdDict)
return PBWAlgElem(parent(a), deepcopy_internal(a.sdata, dict))
end
Expand Down
2 changes: 0 additions & 2 deletions src/Rings/PBWAlgebraQuo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ base_ring(Q::PBWAlgQuo) = base_ring(Q.I)

base_ring_type(::Type{PBWAlgQuo{T, S}}) where {T, S} = base_ring_type(PBWAlgIdeal{0, T, S})

base_ring(a::PBWAlgQuoElem) = base_ring(parent(a))

function Base.deepcopy_internal(a::PBWAlgQuoElem, dict::IdDict)
return PBWAlgQuoElem(parent(a), deepcopy_internal(a.data, dict))
end
Expand Down
2 changes: 0 additions & 2 deletions src/Rings/mpoly-graded.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1174,8 +1174,6 @@ number_of_generators(W::MPolyDecRing) = number_of_generators(forget_decoration(W
gens(W::MPolyDecRing) = map(W, gens(forget_decoration(W)))
gen(W::MPolyDecRing, i::Int) = W(gen(forget_decoration(W), i))

base_ring(f::MPolyDecRingElem) = base_ring(forget_decoration(f))

function show_homo_comp(io::IO, M)
(W, d) = get_attribute(M, :data)
n = AbstractAlgebra.get_name(W)
Expand Down
1 change: 0 additions & 1 deletion src/Rings/mpolyquo-localizations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,6 @@ denominator(a::MPolyQuoLocRingElem) = underlying_quotient(parent(a))(a.denominat
### additional getter functions
underlying_quotient(a::MPolyQuoLocRingElem) = underlying_quotient(parent(a))
localized_ring(a::MPolyQuoLocRingElem) = localized_ring(parent(a))
base_ring(a::MPolyQuoLocRingElem) = base_ring(parent(a))
is_reduced(a::MPolyQuoLocRingElem) = a.is_reduced

@doc raw"""
Expand Down

0 comments on commit 17a675d

Please sign in to comment.