diff options
author | FormerLurker <hochgebe@gmail.com> | 2020-05-17 01:45:34 +0300 |
---|---|---|
committer | FormerLurker <hochgebe@gmail.com> | 2020-05-17 01:45:34 +0300 |
commit | d89b70ae4a0377818bc7a3cc0f35167c2cf787ab (patch) | |
tree | 67b9cb94a5d46a478de4eeada43b1491b789050f /ArcWelder | |
parent | d201085f565ed498d218ece1783a5c76bcfdb25d (diff) |
Remove redundant testing for arcs.
Diffstat (limited to 'ArcWelder')
-rw-r--r-- | ArcWelder/segmented_arc.cpp | 9 |
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; } |