Skip to content

Commit

Permalink
remove unused debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
lidaobing committed Feb 3, 2018
1 parent 6cde439 commit 8e470cc
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/iptux/TransWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "iptux/deplib.h"
#include "iptux/TransAbstract.h"
#include "iptux/UiUtils.h"
#include "output.h"

#define IPTUX_PRIVATE "iptux-private"

Expand All @@ -33,7 +32,6 @@ static GtkWidget *CreateTransPopupMenu(GtkTreeModel *model);
static void OpenThisFile(GtkTreeModel *model);
static void ClearTransTask(GtkTreeModel *model);
static gboolean UpdateTransUI(GtkWindow *window);
static void printKey(GQuark key);
static TransWindowPrivate& getPriv(TransWindow* window);

TransWindow *trans_window_new(GtkWindow *parent) {
Expand All @@ -49,9 +47,6 @@ TransWindow *trans_window_new(GtkWindow *parent) {
gtk_window_set_transient_for(window, parent);
gtk_window_set_destroy_with_parent(window, true);

GObject* object = G_OBJECT(window);
g_datalist_foreach(&object->qdata, GDataForeachFunc(printKey), nullptr);

IptuxConfig *config = static_cast<IptuxConfig *>(g_object_get_data(G_OBJECT(parent), "iptux-config"));
gtk_window_set_title(GTK_WINDOW(window), _("Files Transmission Management"));
gtk_window_set_default_size(GTK_WINDOW(window),
Expand Down Expand Up @@ -474,10 +469,6 @@ gboolean UpdateTransUI(GtkWindow *window) {
return TRUE;
}

static void printKey(GQuark key) {
LOG_DEBUG("TransWindow keys: %s", g_quark_to_string(key));
}

TransWindowPrivate &getPriv(TransWindow *window) {
return *((TransWindowPrivate*)g_object_get_data(G_OBJECT(window), IPTUX_PRIVATE));
}
Expand Down

0 comments on commit 8e470cc

Please sign in to comment.