diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2025-07-27 19:37:48 +0300 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2025-07-27 19:39:23 +0300 |
| commit | 8d3b65c5d83c0499ac5c18513323fbd204b2d2c1 (patch) | |
| tree | 98bde0bdd447a5460930c7ab37d270960c840450 /mu | |
| parent | 28ea23a2a3494b7f1081deaaa307389e817868c9 (diff) | |
utils: refactor count_nl from mu-cmd-find
And update users.
Please enter the commit message for your changes. Lines starting
Diffstat (limited to 'mu')
| -rw-r--r-- | mu/mu-cmd-find.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/mu/mu-cmd-find.cc b/mu/mu-cmd-find.cc index 3556b45..d4c7e17 100644 --- a/mu/mu-cmd-find.cc +++ b/mu/mu-cmd-find.cc @@ -533,14 +533,6 @@ Mu::mu_cmd_find(const Store& store, const Options& opts) static std::string test_mu_home; -auto count_nl(const std::string& s)->size_t { - size_t n{}; - for (auto&& c: s) - if (c == '\n') - ++n; - return n; -} - static size_t search_func(const std::string& expr, size_t expected) { |
