From b2af9cee6cf1aee8ff7a10ec4b1e20790575eb79 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 9 Jul 2019 10:15:06 -0500 Subject: [PATCH] Use the fact that handles are now less-than comparable. NFC. --- src/dsc.h | 1 - src/solvespace.h | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/dsc.h b/src/dsc.h index 9b1183ba..de5f7ee6 100644 --- a/src/dsc.h +++ b/src/dsc.h @@ -313,7 +313,6 @@ public: } }; - // A list, where each element has an integer identifier. The list is kept // sorted by that identifier, and items can be looked up in log n time by // id. diff --git a/src/solvespace.h b/src/solvespace.h index 4e18a742..6d2687b3 100644 --- a/src/solvespace.h +++ b/src/solvespace.h @@ -165,13 +165,8 @@ enum class Unit : uint32_t { METERS }; -template -struct CompareHandle { - bool operator()(T lhs, T rhs) const { return lhs.v < rhs.v; } -}; - template -using handle_map = std::map>; +using handle_map = std::map; class Group; class SSurface;