commit 566853c97ca5a419493157f2ea64592fc72b994b
parent 2b08f7b5611ccd27ee45339ab2b302f9d6f28f24
Author: Oliver Lowe <o@olowe.co>
Date: Thu, 20 Nov 2025 14:45:16 +1100
remove more dead manual code
Diffstat:
2 files changed, 0 insertions(+), 48 deletions(-)
diff --git a/src/manual.c b/src/manual.c
@@ -17,52 +17,9 @@
*
*/
-#include "defs.h"
-
-#include <glib.h>
-#include <string.h>
-#include <locale.h>
-
#include "manual.h"
#include "utils.h"
-static gchar *get_language()
-{
- gchar *language;
- gchar *c;
- language = g_strdup(setlocale(LC_MESSAGES, NULL));
- if (!language)
- return g_strdup("en");
-
- if((c = strchr(language, ',')) != NULL)
- *c = '\0';
- if((c = strchr(language, '_')) != NULL)
- *c = '\0';
-
- return language;
-}
-
-static gchar *get_local_path_with_locale(gchar *rootpath)
-{
- gchar *lang_str, *dir;
-
- lang_str = get_language();
- dir = g_strconcat(rootpath, G_DIR_SEPARATOR_S,
- lang_str, NULL);
- g_free(lang_str);
- if(!is_dir_exist(dir)) {
- g_free(dir);
- dir = g_strconcat(rootpath, G_DIR_SEPARATOR_S,
- "en", NULL);
- if(!is_dir_exist(dir)) {
- g_free(dir);
- dir = NULL;
- }
- }
-
- return dir;
-}
-
void manual_open(ManualType type, gchar *url_anchor)
{
if (type == MANUAL_FAQ_CLAWS) {
diff --git a/src/manual.h b/src/manual.h
@@ -17,9 +17,6 @@
*
*/
-#ifndef __MANUAL_H__
-#define __MANUAL_H__
-
#include <gtk/gtk.h>
typedef enum
@@ -41,5 +38,3 @@ typedef enum
void manual_open (ManualType type, gchar *url_anchor);
void manual_open_with_anchor_cb(GtkWidget *widget, gchar *url_anchor);
-
-#endif /* __MANUAL_H__ */