From f7817a2586469e9c11324780901d01e3f88a6e7a Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Wed, 10 Apr 2019 23:15:17 -0700 Subject: [PATCH] Remove env_node_t::contains_any_of Dead code... --- src/env.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/env.cpp b/src/env.cpp index 65efd30fb..a7b1a929c 100644 --- a/src/env.cpp +++ b/src/env.cpp @@ -90,14 +90,6 @@ class env_node_t { if (it != env.end()) return it->second; return none(); } - - /// Return whether this node contains any of the entries in the vars list. - bool contains_any_of(const wcstring_list_t &vars) const { - for (const auto &v : vars) { - if (env.count(v)) return true; - } - return false; - } }; using env_node_ref_t = std::shared_ptr;