summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2017-08-31 09:52:45 -0400
committerPatrick Griffis <tingping@tingping.se>2017-08-31 10:16:03 -0400
commitd99cd18fb9e97c4ec264ad7a72bf7e2ba9a6dfa2 (patch)
treed2cb813ed55b738e354c1554052ac6556b4de2b2 /src/common
parent281038e725e05e8373e11f8edcbcbfc746e1427d (diff)
Improve detection of system tray support
Closes #2045
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.c12
-rw-r--r--src/common/util.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 8f4c3abe..6c665dbc 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1363,18 +1363,6 @@ portable_mode (void)
 #endif
 }
 
-int
-unity_mode (void)
-{
-#ifdef G_OS_UNIX
-	const char *env = g_getenv("XDG_CURRENT_DESKTOP");
-	if (env && (strcmp (env, "Unity") == 0
-			|| strcmp (env, "Pantheon") == 0))
-		return 1;
-#endif
-	return 0;
-}
-
 char *
 encode_sasl_pass_plain (char *user, char *pass)
 {
diff --git a/src/common/util.h b/src/common/util.h
index 2ec1fa92..fcb23834 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -76,7 +76,6 @@ guint32 str_ihash (const unsigned char *key);
 void safe_strcpy (char *dest, const char *src, int bytes_left);
 void canonalize_key (char *key);
 int portable_mode (void);
-int unity_mode (void);
 char *encode_sasl_pass_plain (char *user, char *pass);
 char *challengeauth_response (const char *username, const char *password, const char *challenge);
 size_t strftime_validated (char *dest, size_t destsize, const char *format, const struct tm *time);