@@ -169,10 +169,6 @@ void dbus_cb_fdn_methods(GDBusConnection *connection,
169
169
GDBusMethodInvocation * invocation ,
170
170
gpointer user_data )
171
171
{
172
- (void )object_path ;
173
- (void )interface_name ;
174
- (void )user_data ;
175
-
176
172
struct dbus_method * m = bsearch (method_name ,
177
173
methods_fdn ,
178
174
G_N_ELEMENTS (methods_fdn ),
@@ -228,10 +224,6 @@ void dbus_cb_dunst_methods(GDBusConnection *connection,
228
224
GDBusMethodInvocation * invocation ,
229
225
gpointer user_data )
230
226
{
231
- (void )object_path ;
232
- (void )interface_name ;
233
- (void )user_data ;
234
-
235
227
struct dbus_method * m = bsearch (method_name ,
236
228
methods_dunst ,
237
229
G_N_ELEMENTS (methods_dunst ),
@@ -251,9 +243,6 @@ static void dbus_cb_dunst_ContextMenuCall(GDBusConnection *connection,
251
243
GVariant * parameters ,
252
244
GDBusMethodInvocation * invocation )
253
245
{
254
- (void )sender ;
255
- (void )parameters ;
256
-
257
246
LOG_D ("CMD: Calling context menu" );
258
247
context_menu ();
259
248
@@ -266,8 +255,6 @@ static void dbus_cb_dunst_NotificationAction(GDBusConnection *connection,
266
255
GVariant * parameters ,
267
256
GDBusMethodInvocation * invocation )
268
257
{
269
- (void )sender ;
270
-
271
258
guint32 notification_nr = 0 ;
272
259
g_variant_get (parameters , "(u)" , & notification_nr );
273
260
@@ -298,9 +285,6 @@ static void dbus_cb_dunst_NotificationClearHistory(GDBusConnection *connection,
298
285
GVariant * parameters ,
299
286
GDBusMethodInvocation * invocation )
300
287
{
301
- (void )sender ;
302
- (void )parameters ;
303
-
304
288
LOG_D ("CMD: Clearing the history" );
305
289
queues_history_clear ();
306
290
wake_up ();
@@ -314,9 +298,6 @@ static void dbus_cb_dunst_NotificationCloseAll(GDBusConnection *connection,
314
298
GVariant * parameters ,
315
299
GDBusMethodInvocation * invocation )
316
300
{
317
- (void )sender ;
318
- (void )parameters ;
319
-
320
301
LOG_D ("CMD: Pushing all to history" );
321
302
queues_history_push_all ();
322
303
wake_up ();
@@ -330,9 +311,6 @@ static void dbus_cb_dunst_NotificationCloseLast(GDBusConnection *connection,
330
311
GVariant * parameters ,
331
312
GDBusMethodInvocation * invocation )
332
313
{
333
- (void )sender ;
334
- (void )parameters ;
335
-
336
314
LOG_D ("CMD: Closing last notification" );
337
315
const GList * list = queues_get_displayed ();
338
316
if (list && list -> data ) {
@@ -350,9 +328,6 @@ static void dbus_cb_dunst_NotificationShow(GDBusConnection *connection,
350
328
GVariant * parameters ,
351
329
GDBusMethodInvocation * invocation )
352
330
{
353
- (void )sender ;
354
- (void )parameters ;
355
-
356
331
LOG_D ("CMD: Showing last notification from history" );
357
332
queues_history_pop ();
358
333
wake_up ();
@@ -366,9 +341,6 @@ static void dbus_cb_dunst_NotificationListHistory(GDBusConnection *connection,
366
341
GVariant * parameters ,
367
342
GDBusMethodInvocation * invocation )
368
343
{
369
- (void )sender ;
370
- (void )parameters ;
371
-
372
344
LOG_D ("CMD: Listing all notifications from history" );
373
345
374
346
GVariantBuilder builder ;
@@ -421,9 +393,6 @@ static void dbus_cb_dunst_NotificationPopHistory(GDBusConnection *connection,
421
393
GVariant * parameters ,
422
394
GDBusMethodInvocation * invocation )
423
395
{
424
- (void )sender ;
425
- (void )parameters ;
426
-
427
396
LOG_D ("CMD: Popping notification from history" );
428
397
429
398
guint32 id ;
@@ -441,9 +410,6 @@ static void dbus_cb_dunst_NotificationRemoveFromHistory(GDBusConnection *connect
441
410
GVariant * parameters ,
442
411
GDBusMethodInvocation * invocation )
443
412
{
444
- (void )sender ;
445
- (void )parameters ;
446
-
447
413
LOG_D ("CMD: Removing notification from history" );
448
414
449
415
guint32 id ;
@@ -497,9 +463,6 @@ static void dbus_cb_dunst_RuleList(GDBusConnection *connection,
497
463
GVariant * parameters ,
498
464
GDBusMethodInvocation * invocation )
499
465
{
500
- (void )sender ;
501
- (void )parameters ;
502
-
503
466
LOG_D ("CMD: Listing all configured rules" );
504
467
505
468
GVariantBuilder builder ;
@@ -623,9 +586,6 @@ static void dbus_cb_dunst_RuleEnable(GDBusConnection *connection,
623
586
GVariant * parameters ,
624
587
GDBusMethodInvocation * invocation )
625
588
{
626
- (void )sender ;
627
- (void )parameters ;
628
-
629
589
// dbus param state: 0 → disable, 1 → enable, 2 → toggle.
630
590
631
591
int state = 0 ;
@@ -671,8 +631,6 @@ static void dbus_cb_dunst_ConfigReload(GDBusConnection *connection,
671
631
GVariant * parameters ,
672
632
GDBusMethodInvocation * invocation )
673
633
{
674
- (void )sender ;
675
-
676
634
gchar * * configs = NULL ;
677
635
g_variant_get (parameters , "(^as)" , & configs );
678
636
reload (configs );
@@ -688,9 +646,6 @@ static void dbus_cb_dunst_Ping(GDBusConnection *connection,
688
646
GVariant * parameters ,
689
647
GDBusMethodInvocation * invocation )
690
648
{
691
- (void )sender ;
692
- (void )parameters ;
693
-
694
649
g_dbus_method_invocation_return_value (invocation , NULL );
695
650
g_dbus_connection_flush (connection , NULL , NULL , NULL );
696
651
}
@@ -702,9 +657,6 @@ static void dbus_cb_GetCapabilities(
702
657
GVariant * parameters ,
703
658
GDBusMethodInvocation * invocation )
704
659
{
705
- (void )sender ;
706
- (void )parameters ;
707
-
708
660
GVariantBuilder * builder ;
709
661
GVariant * value ;
710
662
@@ -1049,8 +1001,6 @@ static void dbus_cb_CloseNotification(
1049
1001
GVariant * parameters ,
1050
1002
GDBusMethodInvocation * invocation )
1051
1003
{
1052
- (void )sender ;
1053
-
1054
1004
guint32 id ;
1055
1005
g_variant_get (parameters , "(u)" , & id );
1056
1006
if (settings .ignore_dbusclose ) {
@@ -1075,9 +1025,6 @@ static void dbus_cb_GetServerInformation(
1075
1025
GVariant * parameters ,
1076
1026
GDBusMethodInvocation * invocation )
1077
1027
{
1078
- (void )sender ;
1079
- (void )parameters ;
1080
-
1081
1028
GVariant * answer = g_variant_new ("(ssss)" , "dunst" , "knopwob" , VERSION , "1.2" );
1082
1029
1083
1030
g_dbus_method_invocation_return_value (invocation , answer );
@@ -1176,12 +1123,6 @@ GVariant *dbus_cb_dunst_Properties_Get(GDBusConnection *connection,
1176
1123
GError * * error ,
1177
1124
gpointer user_data )
1178
1125
{
1179
- (void )connection ;
1180
- (void )sender ;
1181
- (void )object_path ;
1182
- (void )interface_name ;
1183
- (void )user_data ;
1184
-
1185
1126
struct dunst_status status = dunst_status_get ();
1186
1127
1187
1128
if (STR_EQ (property_name , "paused" )) {
@@ -1213,9 +1154,6 @@ gboolean dbus_cb_dunst_Properties_Set(GDBusConnection *connection,
1213
1154
GError * * error ,
1214
1155
gpointer user_data )
1215
1156
{
1216
- (void )sender ;
1217
- (void )user_data ;
1218
-
1219
1157
int targetPauseLevel = -1 ;
1220
1158
if (STR_EQ (property_name , "paused" )) {
1221
1159
if (g_variant_get_boolean (value )) {
@@ -1278,9 +1216,6 @@ static void dbus_cb_bus_acquired(GDBusConnection *connection,
1278
1216
const gchar * name ,
1279
1217
gpointer user_data )
1280
1218
{
1281
- (void )name ;
1282
- (void )user_data ;
1283
-
1284
1219
GError * err = NULL ;
1285
1220
if (!g_dbus_connection_register_object (
1286
1221
connection ,
@@ -1309,8 +1244,6 @@ static void dbus_cb_name_acquired(GDBusConnection *connection,
1309
1244
const gchar * name ,
1310
1245
gpointer user_data )
1311
1246
{
1312
- (void )user_data ;
1313
-
1314
1247
// If we're not able to get org.fd.N bus, we've still got a problem
1315
1248
if (STR_EQ (name , FDN_NAME ))
1316
1249
dbus_conn = connection ;
@@ -1434,9 +1367,6 @@ static void dbus_cb_name_lost(GDBusConnection *connection,
1434
1367
const gchar * name ,
1435
1368
gpointer user_data )
1436
1369
{
1437
- (void )name ;
1438
- (void )user_data ;
1439
-
1440
1370
if (connection ) {
1441
1371
char * name ;
1442
1372
unsigned int pid ;
0 commit comments