Skip to content

Commit e461c7e

Browse files
committed
Clean up stuff
1 parent 9953e41 commit e461c7e

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/geometry_primitives.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ function convert_simplex(::Type{Point{N, T}}, x) where {N, T}
5656
N2 = length(x)
5757
return (Point{N, T}(ntuple(i-> i <= N2 ? T(x[i]) : T(0), N)),)
5858
end
59-
# function convert_simplex(::Type{Point{N, T}}, x::Line) where {N, T}
60-
# N2 = length(x)
61-
# return (Point{N, T}[x[1])
62-
# end
6359

6460
function convert_simplex(::Type{Vec{N, T}}, x) where {N, T}
6561
N2 = length(x)

src/interfaces.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,8 @@ end
111111
function decompose(::Type{T}, primitive) where {T}
112112
return collect_with_eltype(T, primitive)
113113
end
114-
"""
115-
decompose a linesting into points
116-
"""
117-
decompose(::Type{P}, ls::LineString) where {P<:AbstractPoint} = ls.points.parent.data
118114

115+
decompose(::Type{P}, ls::LineString) where {P<:AbstractPoint} = ls.points.parent.data
119116
decompose_uv(primitive) = decompose(UV(), primitive)
120117
decompose_uvw(primitive) = decompose(UVW(), primitive)
121118
decompose_normals(primitive) = decompose(Normal(), primitive)

0 commit comments

Comments
 (0)