[empathy] remove unused string util functions
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] remove unused string util functions
- Date: Wed, 29 Jun 2011 09:56:50 +0000 (UTC)
commit db0fd2e3da0b075282169e2a220a1c4051c4309d
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Jun 29 11:48:20 2011 +0200
remove unused string util functions
libempathy/empathy-utils.c | 33 ---------------------------------
libempathy/empathy-utils.h | 10 ----------
tests/Makefile.am | 4 ----
tests/empathy-utils-test.c | 33 ---------------------------------
4 files changed, 0 insertions(+), 80 deletions(-)
---
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index e334d6c..5f9178a 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -105,39 +105,6 @@ empathy_init (void)
initialized = TRUE;
}
-gchar *
-empathy_substring (const gchar *str,
- gint start,
- gint end)
-{
- return g_strndup (str + start, end - start);
-}
-
-gint
-empathy_strcasecmp (const gchar *s1,
- const gchar *s2)
-{
- return empathy_strncasecmp (s1, s2, -1);
-}
-
-gint
-empathy_strncasecmp (const gchar *s1,
- const gchar *s2,
- gsize n)
-{
- gchar *u1, *u2;
- gint ret_val;
-
- u1 = g_utf8_casefold (s1, n);
- u2 = g_utf8_casefold (s2, n);
-
- ret_val = g_utf8_collate (u1, u2);
- g_free (u1);
- g_free (u2);
-
- return ret_val;
-}
-
gboolean
empathy_xml_validate (xmlDoc *doc,
const gchar *dtd_filename)
diff --git a/libempathy/empathy-utils.h b/libempathy/empathy-utils.h
index dca5570..97490b9 100644
--- a/libempathy/empathy-utils.h
+++ b/libempathy/empathy-utils.h
@@ -45,16 +45,6 @@ G_BEGIN_DECLS
void empathy_init (void);
-/* Strings */
-gchar * empathy_substring (const gchar *str,
- gint start,
- gint end);
-gint empathy_strcasecmp (const gchar *s1,
- const gchar *s2);
-gint empathy_strncasecmp (const gchar *s1,
- const gchar *s2,
- gsize n);
-
/* XML */
gboolean empathy_xml_validate (xmlDoc *doc,
const gchar *dtd_filename);
diff --git a/tests/Makefile.am b/tests/Makefile.am
index a9fc0cb..7bcfa5e 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -25,7 +25,6 @@ LDADD = \
$(NULL)
TEST_PROGS = \
- empathy-utils-test \
empathy-irc-server-test \
empathy-irc-network-test \
empathy-irc-network-manager-test \
@@ -35,9 +34,6 @@ TEST_PROGS = \
empathy-live-search-test \
empathy-tls-test
-empathy_utils_test_SOURCES = empathy-utils-test.c \
- test-helper.c test-helper.h
-
empathy_tls_test_SOURCES = empathy-tls-test.c \
test-helper.c test-helper.h
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]