[gitg] Remove bundle support



commit 16c59ff6ce82f0dbc5256802705fea8ab5898da7
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sat May 29 22:40:35 2010 +0200

    Remove bundle support

 configure.ac     |    7 -------
 gitg/gitg-dirs.c |   13 +------------
 2 files changed, 1 insertions(+), 19 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index af75209..e37fed8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -78,13 +78,6 @@ fi
 AC_SUBST(PACKAGE_CFLAGS)
 AC_SUBST(PACKAGE_LIBS)
 
-if test "$enable_bundle" = "yes"; then
-	AC_DEFINE([ENABLE_BUNDLE],[1],[Defined if building bundle])
-fi
-
-bundledir=gitg-bundle-gitg_version
-AC_SUBST(bundledir)
-
 AM_GCONF_SOURCE_2
 
 AC_CONFIG_FILES([
diff --git a/gitg/gitg-dirs.c b/gitg/gitg-dirs.c
index d255abf..27ca171 100644
--- a/gitg/gitg-dirs.c
+++ b/gitg/gitg-dirs.c
@@ -23,8 +23,6 @@
 #include "gitg-dirs.h"
 #include "config.h"
 
-static gchar *executable_directory = NULL; 
-
 gchar const *
 gitg_dirs_get_data_dir()
 {
@@ -32,14 +30,7 @@ gitg_dirs_get_data_dir()
 
 	if (!datadir)
 	{
-#ifdef ENABLE_BUNDLE
-		// FIXME ensure executable_directory is not NULL
-		gchar *up = g_path_get_dirname(executable_directory);
-		datadir = g_build_filename(up, "resources", NULL);
-		g_free(up);
-#else
-		datadir = g_strdup(GITG_DATADIR);
-#endif
+		datadir = g_strdup (GITG_DATADIR);
 	}
 
 	return datadir;
@@ -83,7 +74,5 @@ gitg_dirs_initialize(int argc, char **argv)
 		g_free(cwd);
 	}
 
-	g_free(executable_directory);
-	executable_directory = g_strdup(path);
 	g_free(path);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]