aboutsummaryrefslogtreecommitdiff
path: root/shell/syncmanager.c
diff options
context:
space:
mode:
authorbigbear <ns@bigbear.dk>2024-02-08 03:00:44 +0100
committerbigbear <ns@bigbear.dk>2024-02-08 19:52:53 +0100
commitc298027fefc0f5e85f82e486ee3c84aa8a8f9fe4 (patch)
tree626080c00df2c9c80575900171a83eb73b7c9c00 /shell/syncmanager.c
parentc7282f2d5e5952f5c76a5225072f6257bc0c5776 (diff)
CLEANUP - remove old stuff
Diffstat (limited to 'shell/syncmanager.c')
-rw-r--r--shell/syncmanager.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/shell/syncmanager.c b/shell/syncmanager.c
index e034909e..86ba80a3 100644
--- a/shell/syncmanager.c
+++ b/shell/syncmanager.c
@@ -21,7 +21,6 @@
#include "iconcache.h"
#include "syncmanager.h"
-#ifdef HAS_LIBSOUP
#include <libsoup/soup.h>
#include <stdarg.h>
@@ -88,47 +87,30 @@ sync_dialog_netarea_start_actions(SyncDialog *sd, SyncNetAction *sna, gint n);
if (!sna->error) { \
sna->error = g_error_new(err_quark, code, message, ##__VA_ARGS__); \
}
-#endif /* HAS_LIBSOUP */
gint sync_manager_count_entries(void)
{
-#ifdef HAS_LIBSOUP
return g_slist_length(entries);
-#else
- return 0;
-#endif
}
void sync_manager_add_entry(SyncEntry *entry)
{
-#ifdef HAS_LIBSOUP
DEBUG("registering syncmanager entry ''%s''", entry->name);
entry->selected = TRUE;
entries = g_slist_append(entries, entry);
-#else
- DEBUG("libsoup support is disabled.");
-#endif /* HAS_LIBSOUP */
}
void sync_manager_clear_entries(void)
{
-#ifdef HAS_LIBSOUP
DEBUG("clearing syncmanager entries");
g_slist_free(entries);
entries = NULL;
-#else
- DEBUG("libsoup support is disabled.");
-#endif /* HAS_LIBSOUP */
}
void sync_manager_show(GtkWidget *parent)
{
-#ifndef HAS_LIBSOUP
- g_warning(_("HardInfo was compiled without libsoup support. (Network "
- "Updater requires it.)"));
-#else /* !HAS_LIBSOUP */
SyncDialog *sd = sync_dialog_new(parent);
err_quark = g_quark_from_static_string("syncmanager");
@@ -146,10 +128,8 @@ void sync_manager_show(GtkWidget *parent)
}
sync_dialog_destroy(sd);
-#endif /* HAS_LIBSOUP */
}
-#ifdef HAS_LIBSOUP
static gboolean _cancel_sync(GtkWidget *widget, gpointer data)
{
SyncDialog *sd = (SyncDialog *)data;
@@ -706,4 +686,3 @@ void sync_manager_update_on_startup(void)
g_idle_add(sync_one, action);
}
}
-#endif /* HAS_LIBSOUP */