Skip to content

Commit afa6776

Browse files
committed
Fixes for clang-tidy: bugprone-unused-local-non-trivial-variable
1 parent abb6568 commit afa6776

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

src/core/Expression.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ Range::Range(Expression *begin, Expression *step, Expression *end, const Locatio
228228
* during normal operating, not runtime during error handling.
229229
*/
230230
static void NOINLINE print_range_depr(const Location& loc, const std::shared_ptr<const Context>& context){
231-
std::string locs = loc.toRelativeString(context->documentRoot());
232231
LOG(message_group::Deprecated, loc, context->documentRoot(), "Using ranges of the form [begin:end] with begin value greater than the end value is deprecated");
233232
}
234233

src/gui/Measurement.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ QString Measurement::statemachine(QPoint mouse)
7676
if(obj1.type == SelectionType::SELECTION_LINE && obj2.type == SelectionType::SELECTION_LINE) dist =calculateSegSegDistance(obj1.p1, obj1.p2,obj2.p1,obj2.p2,lat);
7777
if(!std::isnan(dist)) {
7878
return QString("Distance is %1").arg(fabs(dist));
79-
std::stringstream ss;
8079
}
8180
qglview->selected_obj.clear();
8281
qglview->shown_obj.clear();

src/io/import_obj.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ std::unique_ptr<PolySet> import_obj(const std::string& filename, const Location&
6161
return PolySet::createEmpty();
6262
}
6363
} else if (boost::regex_search(line, results, ex_f) && results.size() >= 2) {
64-
std::string args=results[1];
6564
std::vector<std::string> words;
6665
boost::split(words, results[1], boost::is_any_of(" \t"));
6766
builder.beginPolygon(words.size());

0 commit comments

Comments
 (0)