Skip to content

Commit

Permalink
Revert "HybridSpaceStyle to HybridProductSpaceStyle"
Browse files Browse the repository at this point in the history
This reverts commit 94f8650.
  • Loading branch information
the-one-and-only-jackson committed Jun 1, 2023
1 parent 94f8650 commit 79759ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ abstract type AbstractSpaceStyle end

struct FiniteSpaceStyle <: AbstractSpaceStyle end
struct ContinuousSpaceStyle <: AbstractSpaceStyle end
struct HybridProductSpaceStyle <: AbstractSpaceStyle end
struct HybridSpaceStyle <: AbstractSpaceStyle end
struct UnknownSpaceStyle <: AbstractSpaceStyle end

"""
Expand All @@ -26,9 +26,9 @@ end

SpaceStyle(::AbstractInterval) = ContinuousSpaceStyle()

const BASE_SPACE_STYLES = Union{FiniteSpaceStyle, ContinuousSpaceStyle, HybridProductSpaceStyle}
const BASE_SPACE_STYLES = Union{FiniteSpaceStyle, ContinuousSpaceStyle, HybridSpaceStyle}
function promote_spacestyle(::T1, ::T2) where {T1 <: BASE_SPACE_STYLES, T2 <: BASE_SPACE_STYLES}
return (T1 == T2) ? T1() : HybridProductSpaceStyle()
return (T1 == T2) ? T1() : HybridSpaceStyle()
end
promote_spacestyle(_, _) = UnknownSpaceStyle()

Expand Down

0 comments on commit 79759ce

Please sign in to comment.