brasero r998 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r998 - in trunk: . src
- Date: Wed, 16 Jul 2008 11:41:21 +0000 (UTC)
Author: philippr
Date: Wed Jul 16 11:41:21 2008
New Revision: 998
URL: http://svn.gnome.org/viewvc/brasero?rev=998&view=rev
Log:
Removed unused function as it is making build fail with sun compiler
See #542136 comment 9
* src/brasero-utils.c (brasero_utils_free), (brasero_utils_init):
* src/brasero-utils.h:
Modified:
trunk/ChangeLog
trunk/src/brasero-utils.c
trunk/src/brasero-utils.h
Modified: trunk/src/brasero-utils.c
==============================================================================
--- trunk/src/brasero-utils.c (original)
+++ trunk/src/brasero-utils.c Wed Jul 16 11:41:21 2008
@@ -45,9 +45,6 @@
#define BRASERO_ERROR brasero_error_quark()
-static gid_t *groups = NULL;
-G_LOCK_DEFINE (groups_mutex);
-
static GHashTable *stringsH = NULL;
G_LOCK_DEFINE (strings_mutex);
@@ -63,13 +60,6 @@
static void
brasero_utils_free (void)
{
- if (groups) {
- G_LOCK (groups_mutex);
- g_free (groups);
- groups = NULL;
- G_UNLOCK (groups_mutex);
- }
-
if (stringsH) {
G_LOCK (strings_mutex);
g_hash_table_foreach_remove (stringsH,
@@ -102,42 +92,9 @@
gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
BRASERO_DATADIR "/icons");
- /* load gids of the user */
- if (groups == NULL) {
- gint nb;
-
- nb = getgroups (0, NULL);
- G_LOCK (groups_mutex);
- groups = g_new0 (gid_t, nb + 1);
- nb = getgroups (nb, groups);
- G_UNLOCK (groups_mutex);
- }
-
g_atexit (brasero_utils_free);
}
-inline gboolean
-brasero_utils_is_gid_in_groups (gid_t gid)
-{
- gid_t *group;
-
- G_LOCK (groups_mutex);
- if (!groups) {
- G_UNLOCK (groups_mutex);
- return FALSE;
- }
-
- for (group = groups; group && *group; group ++) {
- if (*group == gid) {
- G_UNLOCK (groups_mutex);
- return TRUE;
- }
- }
-
- G_UNLOCK (groups_mutex);
- return FALSE;
-}
-
/**
* Allows multiple uses of the same string
*/
Modified: trunk/src/brasero-utils.h
==============================================================================
--- trunk/src/brasero-utils.h (original)
+++ trunk/src/brasero-utils.h Wed Jul 16 11:41:21 2008
@@ -52,8 +52,6 @@
void brasero_utils_init (void);
-inline gboolean brasero_utils_is_gid_in_groups (gid_t gid);
-
GQuark brasero_error_quark (void);
gchar *brasero_utils_get_time_string (gint64 time,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]