From 7462a8fbfb858db37c4321645cb07b924497bb40 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 2 Aug 2009 21:11:49 -0300 Subject: Remove "Default C Compiler" from "Operating System" (now redundant) --- hardinfo2/arch/linux/common/os.h | 31 ------------------------------- hardinfo2/computer.c | 2 -- hardinfo2/computer.h | 1 - 3 files changed, 34 deletions(-) (limited to 'hardinfo2') diff --git a/hardinfo2/arch/linux/common/os.h b/hardinfo2/arch/linux/common/os.h index f3c2c2d8..21f62296 100644 --- a/hardinfo2/arch/linux/common/os.h +++ b/hardinfo2/arch/linux/common/os.h @@ -16,36 +16,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -static gchar * -get_default_gcc_version(void) -{ - char *buf; - - if (g_spawn_command_line_sync("gcc -v", - NULL, - &buf, - NULL, - NULL)) { - char *return_value; - - if (!(return_value = strstr(buf, "gcc "))) { - goto err; - } - - return_value = strstr(return_value, " ") + 1; - return_value = strstr(return_value, " ") + 1; - - return_value = g_strdup_printf("GNU C Compiler version %s", return_value); - - g_free(buf); - - return return_value; - } - -err: - return g_strdup("Unknown"); -} - static gchar * get_libc_version(void) { @@ -244,7 +214,6 @@ computer_get_os(void) os->username = g_strdup_printf("%s (%s)", g_get_user_name(), g_get_real_name()); os->libc = get_libc_version(); - os->gcc = get_default_gcc_version(); scan_languages(os); detect_desktop_environment(os); diff --git a/hardinfo2/computer.c b/hardinfo2/computer.c index e5a8b55b..5a5f5b79 100644 --- a/hardinfo2/computer.c +++ b/hardinfo2/computer.c @@ -399,7 +399,6 @@ gchar *callback_os() "Kernel=%s\n" "Compiled=%s\n" "C Library=%s\n" - "Default C Compiler=%s\n" "Distribution=%s\n" "[Current Session]\n" "Computer Name=%s\n" @@ -413,7 +412,6 @@ gchar *callback_os() computer->os->kernel, computer->os->compiled_date, computer->os->libc, - computer->os->gcc, computer->os->distro, computer->os->hostname, computer->os->username, diff --git a/hardinfo2/computer.h b/hardinfo2/computer.h index a4745cb6..e3ae6cf9 100644 --- a/hardinfo2/computer.h +++ b/hardinfo2/computer.h @@ -136,7 +136,6 @@ struct _Processor { struct _OperatingSystem { gchar *kernel; gchar *libc; - gchar *gcc; gchar *distrocode, *distro; gchar *hostname; gchar *language; -- cgit v1.2.3