diff --git a/src/tools/outline.cpp b/src/tools/outline.cpp index 5de0790..2b8bd13 100644 --- a/src/tools/outline.cpp +++ b/src/tools/outline.cpp @@ -125,7 +125,6 @@ namespace { std::format_to(std::back_inserter(out), "[L{}] {}\n", line_no, trimmed); ++emitted; }; - const auto& re = outline_pattern(); for (std::size_t i = 0; i <= content.size(); ++i) { if (i == content.size() || content[i] == '\n') { ++line_no; @@ -640,7 +639,6 @@ symbol_range(std::string_view content, std::string_view symbol, [[nodiscard]] std::string render_nested(std::string_view content, std::size_t max_entries, int& total_defs) { - const auto& re = outline_pattern(); // Collect (indent_cols, line_no, signature) for each matching line. struct Row { int cols; int line; std::string sig; }; std::vector rows; diff --git a/src/tools/textproc.cpp b/src/tools/textproc.cpp index c8d07c6..659d013 100644 --- a/src/tools/textproc.cpp +++ b/src/tools/textproc.cpp @@ -451,9 +451,8 @@ ExecResult run_extract(const Call& call, const ExtractArgs& a) { "or widen `glob`.", std::nullopt}; std::ostringstream out; - int scanned = 0; bool capped = false; - for (int c : counted) { scanned += c; capped = capped || c >= share_cap; } + for (int c : counted) capped = capped || c >= share_cap; // ── count mode: value → occurrences, desc ───────────────────────────── if (a.count) {