Skip to content

Commit c52c0f6

Browse files
author
Remi Delmas
committed
Rename remove to erase to allow simplifications
1 parent 7cbee89 commit c52c0f6

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/util/forward_list_as_map.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class forward_list_as_mapt : public std::forward_list<std::pair<keyt, mappedt>>
3434
{
3535
}
3636

37-
void remove(const keyt &name)
37+
void erase(const keyt &name)
3838
{
3939
const_iterator it = this->lower_bound(name);
4040

src/util/irep.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,8 @@ void irept::set_size_t(const irep_idt &name, const std::size_t value)
9494

9595
void irept::remove(const irep_idt &name)
9696
{
97-
#if NAMED_SUB_IS_FORWARD_LIST
98-
return get_named_sub().remove(name);
99-
#else
10097
named_subt &s = get_named_sub();
10198
s.erase(name);
102-
#endif
10399
}
104100

105101
const irept &irept::find(const irep_idt &name) const

0 commit comments

Comments
 (0)