gvfs r2262 - in trunk: . common
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r2262 - in trunk: . common
- Date: Mon, 2 Mar 2009 08:34:15 +0000 (UTC)
Author: alexl
Date: Mon Mar 2 08:34:15 2009
New Revision: 2262
URL: http://svn.gnome.org/viewvc/gvfs?rev=2262&view=rev
Log:
2009-03-02 Alexander Larsson <alexl redhat com>
* common/gdbusutils.[ch]:
Remove unused functions. Pointed out by Tommi Rantala.
Modified:
trunk/ChangeLog
trunk/common/gdbusutils.c
trunk/common/gdbusutils.h
Modified: trunk/common/gdbusutils.c
==============================================================================
--- trunk/common/gdbusutils.c (original)
+++ trunk/common/gdbusutils.c Mon Mar 2 08:34:15 2009
@@ -159,64 +159,6 @@
}
}
-char *
-_g_dbus_unescape_bus_name (const char *escaped, const char *end)
-{
- GString *s = g_string_new ("");
-
- if (end == NULL)
- end = escaped + strlen (escaped);
-
- append_unescaped_dbus_name (s, escaped, end);
- return g_string_free (s, FALSE);
-}
-
-/* We use _ for escaping */
-#define VALID_INITIAL_BUS_NAME_CHARACTER(c) \
- ( ((c) >= 'A' && (c) <= 'Z') || \
- ((c) >= 'a' && (c) <= 'z') || \
- /*((c) == '_') || */((c) == '-'))
-#define VALID_BUS_NAME_CHARACTER(c) \
- ( ((c) >= '0' && (c) <= '9') || \
- ((c) >= 'A' && (c) <= 'Z') || \
- ((c) >= 'a' && (c) <= 'z') || \
- /*((c) == '_')||*/ ((c) == '-'))
-
-void
-_g_dbus_append_escaped_bus_name (GString *s,
- gboolean at_start,
- const char *unescaped)
-{
- char c;
- gboolean first;
- static const gchar hex[16] = "0123456789ABCDEF";
-
- while ((c = *unescaped++) != 0)
- {
- if (first && at_start)
- {
- if (VALID_INITIAL_BUS_NAME_CHARACTER (c))
- {
- g_string_append_c (s, c);
- continue;
- }
- }
- else
- {
- if (VALID_BUS_NAME_CHARACTER (c))
- {
- g_string_append_c (s, c);
- continue;
- }
- }
-
- first = FALSE;
- g_string_append_c (s, '_');
- g_string_append_c (s, hex[((guchar)c) >> 4]);
- g_string_append_c (s, hex[((guchar)c) & 0xf]);
- }
-}
-
void
_g_dbus_message_iter_append_cstring (DBusMessageIter *iter, const char *str)
{
Modified: trunk/common/gdbusutils.h
==============================================================================
--- trunk/common/gdbusutils.h (original)
+++ trunk/common/gdbusutils.h Mon Mar 2 08:34:15 2009
@@ -75,11 +75,6 @@
gint code,
const gchar *format,
...);
-char * _g_dbus_unescape_bus_name (const char *escaped,
- const char *end);
-void _g_dbus_append_escaped_bus_name (GString *string,
- gboolean at_start,
- const char *unescaped);
void _g_dbus_connection_integrate_with_main (DBusConnection *connection);
void _g_dbus_connection_remove_from_main (DBusConnection *connection);
GSource * __g_fd_source_new (int fd,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]