/pidgin/main: 9e545bc5fddc: Remove some dead code
Tomasz Wasilczyk
twasilczyk at pidgin.im
Sun Dec 7 06:07:45 EST 2014
Changeset: 9e545bc5fddc679bfeafb3cd23eff024f2d06ce5
Author: Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date: 2014-12-07 12:07 +0100
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/9e545bc5fddc
Description:
Remove some dead code
diffstat:
libpurple/protocols/jabber/auth_scram.c | 3 +++
libpurple/util.c | 4 ----
pidgin/gtkdocklet.c | 6 ------
3 files changed, 3 insertions(+), 10 deletions(-)
diffs (50 lines):
diff --git a/libpurple/protocols/jabber/auth_scram.c b/libpurple/protocols/jabber/auth_scram.c
--- a/libpurple/protocols/jabber/auth_scram.c
+++ b/libpurple/protocols/jabber/auth_scram.c
@@ -48,6 +48,8 @@ static const JabberScramHash *mech_to_ha
g_return_val_if_reached(NULL);
}
+#if 0
+/* XXX: this code is not (yet) used */
static const struct {
const char *error;
const char *meaning;
@@ -73,6 +75,7 @@ static const struct {
{ "other-error",
N_("Unknown Error") }
};
+#endif
guchar *jabber_scram_hi(const JabberScramHash *hash, const GString *str,
GString *salt, guint iterations)
diff --git a/libpurple/util.c b/libpurple/util.c
--- a/libpurple/util.c
+++ b/libpurple/util.c
@@ -259,10 +259,6 @@ purple_base16_encode_chunked(const gucha
/**************************************************************************
* Base64 Functions
**************************************************************************/
-static const char alphabet[] =
- "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
- "0123456789+/";
-
static const char xdigits[] =
"0123456789abcdef";
diff --git a/pidgin/gtkdocklet.c b/pidgin/gtkdocklet.c
--- a/pidgin/gtkdocklet.c
+++ b/pidgin/gtkdocklet.c
@@ -71,12 +71,6 @@ static void docklet_gtk_status_destroy(v
/**************************************************************************
* docklet status and utility functions
**************************************************************************/
-static inline gboolean
-docklet_is_blinking()
-{
- return flags && !(flags & PIDGIN_DOCKLET_CONNECTING);
-}
-
static void
docklet_gtk_status_update_icon(PurpleStatusPrimitive status, PidginDockletFlag newflag)
{
More information about the Commits
mailing list