diff options
| author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-08-02 21:11:49 -0300 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-08-02 21:11:49 -0300 | 
| commit | 7462a8fbfb858db37c4321645cb07b924497bb40 (patch) | |
| tree | 9de2edc86195835827ca9c2eeab1dd102d0d158c /hardinfo2/arch | |
| parent | 876b598098163793ce02d1c8ea88d06863ca50db (diff) | |
Remove "Default C Compiler" from "Operating System" (now redundant)
Diffstat (limited to 'hardinfo2/arch')
| -rw-r--r-- | hardinfo2/arch/linux/common/os.h | 31 | 
1 files changed, 0 insertions, 31 deletions
| 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 @@ -17,36 +17,6 @@   */  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)  {      FILE *libc; @@ -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); | 
