Skip to content

Commit b5d6e5b

Browse files
committed
signal: Deprecate emit_reverse().
Because we don't use it in any tests or examples and probably nobody uses it. It has already been removed from libsigc++-3.0 (which installs in parallel): https://git.gnome.org/browse/libsigcplusplus/commit/?id=1a4eee7e8ded2acea94e27af5c94e37dcd9cbb13 Please tell us if you really need to use this.
1 parent e650ad0 commit b5d6e5b

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

sigc++/macros/signal.h.m4

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,15 @@ FOR(1, $1,[
7777
slot_iterator_buf_type(slots.end(), &self));
7878
}
7979
80+
_DEPRECATE_IFDEF_START
8081
/** Executes a list of slots using an accumulator of type @e T_accumulator in reverse order.dnl
8182
ifelse($1,0,,[
8283
* The arguments are buffered in a temporary instance of signal_emit$1.])
8384
FOR(1, $1,[
8485
* @param _A_a%1 Argument to be passed on to the slots.])
8586
* @return The accumulated return values of the slot invocations as processed by the accumulator.
87+
*
88+
* @deprecated This is apparently not useful, but please let us know if you need it.
8689
*/
8790
static result_type emit_reverse(LIST(signal_impl* impl, LOOP(type_trait_take_t<T_arg%1> _A_a%1, $1)))
8891
{
@@ -98,6 +101,8 @@ FOR(1, $1,[
98101
return accumulator(slot_reverse_iterator_buf_type(slots.end(), &self),
99102
slot_reverse_iterator_buf_type(slots.begin(), &self));
100103
}
104+
_DEPRECATE_IFDEF_END
105+
101106
dnl
102107
FOR(1, $1,[
103108
type_trait_take_t<T_arg%1> _A_a%1_;])
@@ -157,6 +162,7 @@ FOR(1, $1,[
157162
return r_;
158163
}
159164
165+
_DEPRECATE_IFDEF_START
160166
/** Executes a list of slots using an accumulator of type @e T_accumulator in reverse order.dnl
161167
ifelse($1,0,,[
162168
* The arguments are passed directly on to the slots.])
@@ -166,6 +172,8 @@ ifelse($1,0,,[
166172
FOR(1, $1,[
167173
* @param _A_a%1 Argument to be passed on to the slots.])
168174
* @return The return value of the last slot invoked.
175+
*
176+
* @deprecated This is apparently not useful, but please let us know if you need it.
169177
*/
170178
static result_type emit_reverse(LIST(signal_impl* impl, LOOP(type_trait_take_t<T_arg%1> _A_a%1, $1)))
171179
{
@@ -204,6 +212,7 @@ FOR(1, $1,[
204212
205213
return r_;
206214
}
215+
_DEPRECATE_IFDEF_END
207216
};
208217
209218
/** Abstracts signal emission.
@@ -242,13 +251,16 @@ FOR(1, $1,[
242251
}
243252
}
244253
254+
_DEPRECATE_IFDEF_START
245255
/** Executes a list of slots using an accumulator of type @e T_accumulator in reverse order.dnl
246256
ifelse($1,0,,[
247257
* The arguments are passed directly on to the slots.])
248258
* @param first An iterator pointing to the first slot in the list.
249259
* @param last An iterator pointing to the last slot in the list.dnl
250260
FOR(1, $1,[
251261
* @param _A_a%1 Argument to be passed on to the slots.])
262+
*
263+
* @deprecated This is apparently not useful, but please let us know if you need it.
252264
*/
253265
static result_type emit_reverse(LIST(signal_impl* impl, LOOP(type_trait_take_t<T_arg%1> _A_a%1, $1)))
254266
{
@@ -269,6 +281,7 @@ FOR(1, $1,[
269281
(reinterpret_cast<call_type>(it->rep_->call_))(LIST(it->rep_, LOOP(_A_a%1, $1)));
270282
}
271283
}
284+
_DEPRECATE_IFDEF_END
272285
};
273286
274287
])
@@ -363,11 +376,19 @@ FOR(1, $1,[
363376
result_type emit(LOOP(type_trait_take_t<T_arg%1> _A_a%1, $1)) const
364377
{ return emitter_type::emit(LIST(impl_, LOOP(_A_a%1, $1))); }
365378
366-
/** Triggers the emission of the signal in reverse order (see emit()). */
379+
_DEPRECATE_IFDEF_START
380+
/** Triggers the emission of the signal in reverse order (see emit()).
381+
*
382+
* @deprecated This is apparently not useful, but please let us know if you need it.
383+
*/
367384
result_type emit_reverse(LOOP(type_trait_take_t<T_arg%1> _A_a%1, $1)) const
368385
{ return emitter_type::emit_reverse(LIST(impl_, LOOP(_A_a%1, $1))); }
386+
_DEPRECATE_IFDEF_END
369387
370-
/** Triggers the emission of the signal (see emit()). */
388+
/** Triggers the emission of the signal (see emit()).
389+
*
390+
* @deprecated This is apparently not useful, but let us know if you need it.
391+
*/
371392
result_type operator()(LOOP(type_trait_take_t<T_arg%1> _A_a%1, $1)) const
372393
{ return emit(LOOP(_A_a%1, $1)); }
373394

0 commit comments

Comments
 (0)