[Xfce4-commits] [panel-plugins/xfce4-timer-plugin] 02/02: Remove unused variables and function

noreply at xfce.org noreply at xfce.org
Fri Sep 7 02:52:56 CEST 2018


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-timer-plugin.

commit cf073d3c16c5de19aad6aa10a9ee9fe9335680f1
Author: Andre Miranda <andreldm at xfce.org>
Date:   Thu Sep 6 21:52:47 2018 -0300

    Remove unused variables and function
---
 panel-plugin/xfcetimer.c | 28 +---------------------------
 1 file changed, 1 insertion(+), 27 deletions(-)

diff --git a/panel-plugin/xfcetimer.c b/panel-plugin/xfcetimer.c
index d0af382..ba5ae4c 100644
--- a/panel-plugin/xfcetimer.c
+++ b/panel-plugin/xfcetimer.c
@@ -293,9 +293,6 @@ timer_selected (GtkWidget* menuitem, gpointer data)
   GList *list = (GList *) data;
   alarm_t *alrm;
   plugin_data *pd;
-  GtkMenuItem *rmi;
-
-  rmi = (GtkMenuItem *) menuitem;
 
   alrm = (alarm_t *) list->data;
   pd = (plugin_data *) alrm->pd;
@@ -380,13 +377,6 @@ start_stop_callback (GtkWidget* menuitem, gpointer list)
 {
 	  GList *listitem = (GList *) list;
 	  plugin_data *pd;
-	  GSList *group=NULL;
-	  gchar temp[8];
-	  gint row_count,cur_h,cur_m,cur_s,time;
-	  gint timeout_period;
-	  gboolean is_cd;
-	  GTimeVal timeval;
-	  struct tm *current;
 	  alarm_t *alrm;
 
 	  alrm = (alarm_t *) listitem->data;
@@ -442,21 +432,6 @@ pause_resume_selected (GtkWidget* menuitem, gpointer data)
 
 
 
-/* Callback when "Stop the alarm" is selected in the popup menu */
-static void
-stop_repeating_alarm (GtkWidget* menuitem, gpointer data)
-{
-  plugin_data *pd = (plugin_data *) data;
-  alarm_t *alrm;
-  alrm = (alarm_t *) pd->selected->data;
-
-  g_source_remove (alrm->repeat_timeout);
-
-  alrm->is_repeating = FALSE;
-}
-
-
-
 /* Callback when clicking on pbar. Pops the menu up/down */
 static void
 pbar_clicked (GtkWidget *pbar, GdkEventButton *event, gpointer data)
@@ -482,10 +457,9 @@ pbar_clicked (GtkWidget *pbar, GdkEventButton *event, gpointer data)
 void
 make_menu (plugin_data *pd)
 {
-  GSList *group = NULL;
   GList *list = NULL;
   alarm_t *alrm;
-  GtkWidget *menuitem, *to_be_activated;
+  GtkWidget *menuitem;
   gchar *itemtext;
 
   /* Destroy the existing one */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list