summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiuliano Procida <gprocida@google.com>2022-01-21 17:30:02 +0000
committerDodji Seketeli <dodji@redhat.com>2022-02-24 15:14:24 +0100
commit876415a225a21f3a28f902e77ba95ce49461a3a2 (patch)
tree03ab0ccd59b9a0730d0c9d1da4f07921fa29b42f
parentBug 26646 - unexpected declaration-only types (diff)
downloadlibabigail-876415a225a21f3a28f902e77ba95ce49461a3a2.tar.gz
libabigail-876415a225a21f3a28f902e77ba95ce49461a3a2.tar.bz2
libabigail-876415a225a21f3a28f902e77ba95ce49461a3a2.tar.xz
XML writer: remove type_hasher and remaining comment
The type_hasher functor is no longer used. * src/abg-writer.cc (type_hasher): Remove this unused functor. Remove a following comment referencing it. Reviewed-by: Matthias Maennich <maennich@google.com> Signed-off-by: Giuliano Procida <gprocida@google.com>
-rw-r--r--src/abg-writer.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/abg-writer.cc b/src/abg-writer.cc
index 7906318e..c845f2c4 100644
--- a/src/abg-writer.cc
+++ b/src/abg-writer.cc
@@ -107,18 +107,9 @@ public:
107 } 107 }
108}; 108};
109 109
110/// A hashing functor that should be as fast as possible.
111struct type_hasher
112{
113 size_t
114 operator()(const type_base* t) const
115 {return hash_type(t);}
116}; // end struct type_hasher
117
118/// A convenience typedef for a map that associates a pointer to type 110/// A convenience typedef for a map that associates a pointer to type
119/// to a string. The pointer to type is hashed as fast as possible. 111/// to a string.
120typedef unordered_map<type_base*, 112typedef unordered_map<type_base*, interned_string> type_ptr_map;
121 interned_string> type_ptr_map;
122 113
123// A convenience typedef for a set of type_base*. 114// A convenience typedef for a set of type_base*.
124typedef std::unordered_set<const type_base*> type_ptr_set_type; 115typedef std::unordered_set<const type_base*> type_ptr_set_type;