Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/tools/outline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<Row> rows;
Expand Down
3 changes: 1 addition & 2 deletions src/tools/textproc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Loading