Commit 53ce7e8f authored by Mohammed Sadiq's avatar Mohammed Sadiq Committed by Mohammed Sadiq
Browse files

notify: Remove unused code

This code is never run
parent 9823231c
......@@ -29,22 +29,8 @@ cb_open_message (GSimpleAction *action,
}
static void
cb_open_settings (GSimpleAction *action,
GVariant *parameter,
gpointer user_data)
{
ChattyWindow *window;
window = chatty_application_get_main_window (CHATTY_APPLICATION_DEFAULT ());
chatty_window_change_view (window, CHATTY_VIEW_SETTINGS);
}
static const GActionEntry actions[] = {
{ "open-message", cb_open_message },
{ "open-settings", cb_open_settings },
};
......@@ -106,16 +92,6 @@ chatty_notify_show_notification (const char *title,
g_application_send_notification (application, "x-chatty.network.connected", notification);
break;
case CHATTY_NOTIFY_ACCOUNT_DISCONNECTED:
g_notification_add_button (notification,
_("Open Account Settings"),
"app.open-settings");
g_notification_set_title (notification, title ? title : _("Account Disconnected"));
g_notification_set_priority (notification, G_NOTIFICATION_PRIORITY_URGENT);
g_application_send_notification (application, "x-chatty.network.disconnected", notification);
break;
default:
g_debug ("%s: Unknown notification category", __func__);
}
......
......@@ -14,7 +14,6 @@ typedef enum {
CHATTY_NOTIFY_MESSAGE_ERROR,
CHATTY_NOTIFY_ACCOUNT_GENERIC,
CHATTY_NOTIFY_ACCOUNT_CONNECTED,
CHATTY_NOTIFY_ACCOUNT_DISCONNECTED,
CHATTY_NOTIFY_ACCOUNT_ERROR
} ChattyNotifyType;
......
......@@ -933,9 +933,6 @@ chatty_window_change_view (ChattyWindow *self,
g_assert (CHATTY_IS_WINDOW (self));
switch (view) {
case CHATTY_VIEW_SETTINGS:
chatty_window_show_settings_dialog (self);
break;
case CHATTY_VIEW_MESSAGE_LIST:
hdy_leaflet_set_visible_child_name (HDY_LEAFLET (self->content_box), "content");
break;
......
......@@ -35,7 +35,6 @@ typedef enum {
typedef enum {
CHATTY_VIEW_CHAT_LIST,
CHATTY_VIEW_MESSAGE_LIST,
CHATTY_VIEW_SETTINGS,
} ChattyWindowState;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment