[Lldb-commits] [lldb] [lldb] Remove unused nested class UserID::IDMatches (NFC) (PR #177211)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 21 10:11:09 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Dave Lee (kastiglione)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/177211.diff
1 Files Affected:
- (modified) lldb/include/lldb/Utility/UserID.h (-20)
``````````diff
diff --git a/lldb/include/lldb/Utility/UserID.h b/lldb/include/lldb/Utility/UserID.h
index 19e0052fc51cb..ca5e6a8785fdc 100644
--- a/lldb/include/lldb/Utility/UserID.h
+++ b/lldb/include/lldb/Utility/UserID.h
@@ -52,26 +52,6 @@ struct UserID {
/// The new user ID.
void SetID(lldb::user_id_t uid) { m_uid = uid; }
- /// Unary predicate function object that can search for a matching user ID.
- ///
- /// Function object that can be used on any class that inherits from UserID:
- /// \code
- /// iterator pos;
- /// pos = std::find_if (coll.begin(), coll.end(), UserID::IDMatches(blockID));
- /// \endcode
- class IDMatches {
- public:
- /// Construct with the user ID to look for.
- IDMatches(lldb::user_id_t uid) : m_uid(uid) {}
-
- /// Unary predicate function object callback.
- bool operator()(const UserID &rhs) const { return m_uid == rhs.GetID(); }
-
- private:
- // Member variables.
- const lldb::user_id_t m_uid; ///< The user ID we are looking for
- };
-
protected:
// Member variables.
lldb::user_id_t m_uid; ///< The user ID that uniquely identifies an object.
``````````
</details>
https://github.com/llvm/llvm-project/pull/177211
More information about the lldb-commits
mailing list