@@ -126,23 +126,6 @@ signal_impl::connect(slot_base&& slot_)
126
126
return insert (slots_.end (), std::move (slot_));
127
127
}
128
128
129
- signal_impl::iterator_type
130
- signal_impl::erase (iterator_type i)
131
- {
132
- // Don't let signal_impl::notify() erase the slot. It would be more
133
- // difficult to get the correct return value from signal_impl::erase().
134
- const bool saved_deferred = deferred_;
135
- signal_impl_holder exec (shared_from_this ());
136
-
137
- // Disconnect the slot before it is deleted.
138
- // signal_impl::notify() will be called and delete the self_and_iter struct.
139
- i->disconnect ();
140
-
141
- deferred_ = saved_deferred;
142
-
143
- return slots_.erase (i);
144
- }
145
-
146
129
void
147
130
signal_impl::add_notification_to_iter (const signal_impl::iterator_type& iter)
148
131
{
@@ -212,7 +195,7 @@ signal_impl::notify_self_and_iter_of_invalidated_slot(notifiable* d)
212
195
// This is occurring during signal emission or slot erasure.
213
196
// => sweep() will be called from ~signal_impl_holder() after signal emission.
214
197
// This is safer because we don't have to care about our
215
- // iterators in emit(), clear(), and erase ().
198
+ // iterators in emit() and clear ().
216
199
self->deferred_ = true ;
217
200
}
218
201
}
@@ -293,12 +276,6 @@ signal_base::insert(iterator_type i, slot_base&& slot_)
293
276
return impl ()->insert (i, std::move (slot_));
294
277
}
295
278
296
- signal_base::iterator_type
297
- signal_base::erase (iterator_type i)
298
- {
299
- return impl ()->erase (i);
300
- }
301
-
302
279
signal_base&
303
280
signal_base::operator =(const signal_base& src)
304
281
{
0 commit comments