Skip to content

Commit d7e3d37

Browse files
committed
removed some unused constants
1 parent 9c78d79 commit d7e3d37

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

src/Basics/_module.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,16 @@ module Basics
1515

1616
export trailingPartOfName
1717

18-
export neps, sign_eps, radToDeg, degToRad
18+
export neps, sign_eps, radToDeg
1919
export getAndCheckFullLibraryPath, getEnvironmentVariable
20-
export zeroMVector
21-
export ZeroMVector
20+
2221
export normalizeVector, BoundingBox
2322

2423
export readDictOfStructsFromJSON
2524
export listKeys
2625
export deleteItem
2726

2827
export linearMovement
29-
export assertRotationMatrix
3028

3129
using StaticArrays
3230
using LinearAlgebra

src/Basics/constantsAndFunctions.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,8 @@ function normalizeVector(n::SVector{3,Float64})::SVector{3,Float64}
2222
end
2323
end
2424

25-
# MVector / MMatrix
26-
zeroMVector() = MVector{3,Float64}(0.0, 0.0, 0.0)
27-
2825
# Standard constants
29-
const degToRad = pi/180.0
3026
const radToDeg = 180.0/pi
31-
const ZeroMVector = MVector{3,Float64}(0.0,0.0,0.0)
32-
const NoNameDefined = "_NoNameDefined"
33-
3427

3528
""" mutable struct BoundingBox - Smallest box that contains a visual element"""
3629
mutable struct BoundingBox

src/Shapes/text.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ mutable struct TextShape <: Modia3D.AbstractShape
143143

144144
function TextShape(; text::AbstractString,
145145
font::Font=Font(),
146-
offset::AbstractVector = Basics.zeroMVector(),
146+
offset::AbstractVector = @MVector[0.0, 0.0, 0.0],
147147
axisAlignment::AxisAlignment=Screen,
148148
alignment::Alignment=Center)
149149

src/renderer/DLR_Visualization/visualize.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const emptyShaderName=" "
1919
id::Ptr{Nothing},
2020
material::Shapes.VisualMaterial,
2121
Lx::Float64, Ly::Float64, Lz::Float64;
22-
extras::MVector{3,Float64}=Basics.ZeroMVector)
22+
extras::MVector{3,Float64}=@MVector[0.0, 0.0, 0.0])
2323
mvecSize[1] = Lx
2424
mvecSize[2] = Ly
2525
mvecSize[3] = Lz

0 commit comments

Comments
 (0)