Skip to content

Commit 249bbe4

Browse files
committed
remove unused code
1 parent 7a44da6 commit 249bbe4

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/VortexStepMethod.jl

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -52,29 +52,4 @@ include("solver.jl")
5252
include("color_palette.jl")
5353
include("plotting.jl")
5454

55-
function create_wing_from_obj(obj_path, wing_mass, circle_center, radius, α_tip)
56-
if !isfile(obj_path)
57-
error("OBJ file not found: $obj_path")
58-
end
59-
data_dir = dirname(obj_path)
60-
wing_path = joinpath(data_dir, "measurements.bin")
61-
if isfile(wing_path)
62-
wing = deserialize(wing_path)
63-
new_wing = wing.mass != wing_mass ||
64-
wing.radius != radius ||
65-
wing.α_tip != α_tip
66-
@info "Using cached wing struct. Delete $wing_path to create a new wing."
67-
return deserialize()
68-
end
69-
if new_wing
70-
vertices = read_vertices(obj_path)
71-
faces = read_faces(obj_path)
72-
com = calculate_com(vertices, faces)
73-
inertia_tensor = calculate_inertia_tensor(vertices, faces, wing_mass, com)
74-
gamma_range = -abs(deg2rad(α_tip)):0.01:abs(deg2rad(α_tip))
75-
(interp_max, interp_min, gammas, max_xs, min_xs, inertia_tensor) = create_interpolations(vertices, circle_center, gamma_range)
76-
end
77-
(interp_max, interp_min, gammas, max_xs, min_xs, com) = deserialize(wing_path)
78-
end
79-
8055
end # module

0 commit comments

Comments
 (0)