Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FormerLurker/ArcWelderLib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFormerLurker <hochgebe@gmail.com>2020-05-17 01:45:34 +0300
committerFormerLurker <hochgebe@gmail.com>2020-05-17 01:45:34 +0300
commitd89b70ae4a0377818bc7a3cc0f35167c2cf787ab (patch)
tree67b9cb94a5d46a478de4eeada43b1491b789050f /ArcWelder
parentd201085f565ed498d218ece1783a5c76bcfdb25d (diff)
Remove redundant testing for arcs.
Diffstat (limited to 'ArcWelder')
-rw-r--r--ArcWelder/segmented_arc.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/ArcWelder/segmented_arc.cpp b/ArcWelder/segmented_arc.cpp
index 28145fd..79d12c7 100644
--- a/ArcWelder/segmented_arc.cpp
+++ b/ArcWelder/segmented_arc.cpp
@@ -69,12 +69,6 @@ point segmented_arc::pop_back(double e_relative)
bool segmented_arc::is_shape()
{
- if (is_shape_)
- {
- arc a;
- bool is_arc = try_get_arc(a);
- return is_arc;
- }
return is_shape_;
}
@@ -241,8 +235,7 @@ bool segmented_arc::does_circle_fit_points_(const circle& c)
}
// get the current arc and compare the total length to the original length
- arc a;
- return try_get_arc_(c, a);
+ return true;
}