[Xfce4-commits] [apps/xfce4-screensaver] 345/425: Drop unused xfcekbd-util.{c, h}

noreply at xfce.org noreply at xfce.org
Mon Oct 15 01:53:12 CEST 2018


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

b   l   u   e   s   a   b   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 apps/xfce4-screensaver.

commit f7cf31f0a9cf7ba9530721f5c9157dac41ea0fc7
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Tue Oct 2 07:09:48 2018 -0400

    Drop unused xfcekbd-util.{c,h}
---
 src/Makefile.am               |  8 -------
 src/xfcekbd-keyboard-config.c |  1 -
 src/xfcekbd-util.c            | 53 -------------------------------------------
 src/xfcekbd-util.h            | 30 ------------------------
 4 files changed, 92 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 961ff5d..674b468 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -155,8 +155,6 @@ xfce4_screensaver_dialog_SOURCES = 	\
 	xfcekbd-desktop-config.h \
 	xfcekbd-keyboard-config.c \
 	xfcekbd-keyboard-config.h \
-	xfcekbd-util.c \
-	xfcekbd-util.h \
 	desktop-entries.c \
 	desktop-entries.h \
 	menu-layout.c \
@@ -188,8 +186,6 @@ EXTRA_xfce4_screensaver_dialog_SOURCES = \
 	xfcekbd-desktop-config.h \
 	xfcekbd-keyboard-config.c \
 	xfcekbd-keyboard-config.h \
-	xfcekbd-util.c \
-	xfcekbd-util.h \
 	desktop-entries.c \
 	desktop-entries.h \
 	menu-layout.c \
@@ -270,8 +266,6 @@ xfce4_screensaver_SOURCES =	\
 	xfcekbd-desktop-config.h \
 	xfcekbd-keyboard-config.c \
 	xfcekbd-keyboard-config.h \
-	xfcekbd-util.c \
-	xfcekbd-util.h \
 	xfcemenu-tree.c \
 	xfcemenu-tree.h \
 	desktop-entries.c \
@@ -331,8 +325,6 @@ xfce4_screensaver_preferences_SOURCES =	\
 	xfcekbd-desktop-config.h \
 	xfcekbd-keyboard-config.c \
 	xfcekbd-keyboard-config.h \
-	xfcekbd-util.c \
-	xfcekbd-util.h \
 	xfcemenu-tree.c \
 	xfcemenu-tree.h \
 	canonicalize.c \
diff --git a/src/xfcekbd-keyboard-config.c b/src/xfcekbd-keyboard-config.c
index 6583ece..9c95721 100644
--- a/src/xfcekbd-keyboard-config.c
+++ b/src/xfcekbd-keyboard-config.c
@@ -28,7 +28,6 @@
 
 #include "xfcekbd-keyboard-config.h"
 #include "xfcekbd-config-private.h"
-#include "xfcekbd-util.h"
 
 /*
  * XfcekbdKeyboardConfig
diff --git a/src/xfcekbd-util.c b/src/xfcekbd-util.c
deleted file mode 100644
index 6037396..0000000
--- a/src/xfcekbd-util.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright (C) 2006 Sergey V. Udaltsov <svu at gnome.org>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-
-#include <config.h>
-
-#include <xfcekbd-util.h>
-
-#include <time.h>
-
-#include <glib/gi18n-lib.h>
-
-#include <libxklavier/xklavier.h>
-
-#include <gio/gio.h>
-
-#include <gdk/gdkx.h>
-
-#include <xfcekbd-config-private.h>
-
-/**
- * xfcekbd_strv_append:
- *
- * Returns: (transfer full) (array zero-terminated=1): Append string to strv array
- */
-gchar **
-xfcekbd_strv_append (gchar ** arr, gchar * element)
-{
-	gint old_length = (arr == NULL) ? 0 : g_strv_length (arr);
-	gchar **new_arr = g_new0 (gchar *, old_length + 2);
-	if (arr != NULL) {
-		memcpy (new_arr, arr, old_length * sizeof (gchar *));
-		g_free (arr);
-	}
-	new_arr[old_length] = element;
-	return new_arr;
-}
-
diff --git a/src/xfcekbd-util.h b/src/xfcekbd-util.h
deleted file mode 100644
index cc72d08..0000000
--- a/src/xfcekbd-util.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (C) 2006 Sergey V. Udaltsov <svu at gnome.org>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef __XFCEKBD_UTIL_H__
-#define __XFCEKBD_UTIL_H__
-
-#include <glib.h>
-#include <gdk/gdk.h>
-
-/* Missing in glib */
-extern gchar **xfcekbd_strv_append (gchar ** arr, gchar * element);
-
-
-#endif

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


More information about the Xfce4-commits mailing list