diff options
author | Giuliano Procida <gprocida@google.com> | 2022-01-21 17:30:02 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@redhat.com> | 2022-02-24 15:14:24 +0100 |
commit | 876415a225a21f3a28f902e77ba95ce49461a3a2 (patch) | |
tree | 03ab0ccd59b9a0730d0c9d1da4f07921fa29b42f | |
parent | Bug 26646 - unexpected declaration-only types (diff) | |
download | libabigail-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.cc | 13 |
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. | ||
111 | struct 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. |
120 | typedef unordered_map<type_base*, | 112 | typedef 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*. |
124 | typedef std::unordered_set<const type_base*> type_ptr_set_type; | 115 | typedef std::unordered_set<const type_base*> type_ptr_set_type; |