summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-07-26 12:10:26 +0300
committermonsta <[email protected]>2016-07-26 12:10:26 +0300
commite74f74a69fcc3f21409331bc59035048faed4f4d (patch)
tree3595c70b7992390c4f4672410e7a8e1615fd423b
parentaaec0efff920ab8968776ea92e7688dbf67f1dca (diff)
downloadmate-panel-e74f74a69fcc3f21409331bc59035048faed4f4d.tar.bz2
mate-panel-e74f74a69fcc3f21409331bc59035048faed4f4d.tar.xz
multiscreen: drop unused function
from https://git.gnome.org/browse/gnome-panel/commit/?id=f89661d8489a75d1c356925c6e53e8ccc9d7fbb9
-rw-r--r--configure.ac3
-rw-r--r--mate-panel/panel-multiscreen.c42
-rw-r--r--mate-panel/panel-multiscreen.h2
3 files changed, 0 insertions, 47 deletions
diff --git a/configure.ac b/configure.ac
index 9dcdcf93..e4d7604c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -56,9 +56,6 @@ if test "x$enable_deprecation_flags" = "xyes"; then
AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
fi
-AC_CHECK_HEADERS(crt_externs.h)
-AC_CHECK_FUNCS(_NSGetEnviron)
-
LIBMATE_DESKTOP_REQUIRED=1.9.3
GDK_PIXBUF_REQUIRED=2.7.1
PANGO_REQUIRED=1.15.4
diff --git a/mate-panel/panel-multiscreen.c b/mate-panel/panel-multiscreen.c
index 10935b4e..8f8554f0 100644
--- a/mate-panel/panel-multiscreen.c
+++ b/mate-panel/panel-multiscreen.c
@@ -34,13 +34,6 @@
#include <string.h>
-#if defined(HAVE_CRT_EXTERNS_H) && defined(HAVE__NSGETENVIRON)
-#include <crt_externs.h> /* for _NSGetEnviron */
-#define environ (*_NSGetEnviron())
-#else
-extern char **environ;
-#endif
-
static int screens = 0;
static int *monitors = NULL;
static GdkRectangle **geometries = NULL;
@@ -728,38 +721,3 @@ panel_multiscreen_is_at_visible_extreme (GdkScreen *screen,
}
}
-char **
-panel_make_environment_for_screen (GdkScreen *screen,
- char **envp)
-{
- char **retval = NULL;
- char *display_name;
- int display_index = -1;
- int i, env_len;
-
- g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL);
-
- if (envp == NULL)
- envp = environ;
-
- for (env_len = 0; envp[env_len]; env_len++)
- if (strncmp (envp[env_len], "DISPLAY", strlen ("DISPLAY")) == 0)
- display_index = env_len;
-
- retval = g_new (char *, env_len + 1);
- retval[env_len] = NULL;
-
- display_name = gdk_screen_make_display_name (screen);
-
- for (i = 0; i < env_len; i++)
- if (i == display_index)
- retval[i] = g_strconcat ("DISPLAY=", display_name, NULL);
- else
- retval[i] = g_strdup (envp[i]);
-
- g_assert (i == env_len);
-
- g_free (display_name);
-
- return retval;
-}
diff --git a/mate-panel/panel-multiscreen.h b/mate-panel/panel-multiscreen.h
index b8ddbfcf..d1f0a77f 100644
--- a/mate-panel/panel-multiscreen.h
+++ b/mate-panel/panel-multiscreen.h
@@ -52,7 +52,5 @@ void panel_multiscreen_is_at_visible_extreme (GdkScreen *screen,
gboolean *rightmost,
gboolean *topmost,
gboolean *bottommost);
-char **panel_make_environment_for_screen (GdkScreen *screen,
- char **envp);
#endif /* __PANEL_MULTISCREEN_H__ */