[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Sun, 20 Mar 2022 04:55:26 -0400 (EDT) |
branch: master
commit e11fde8a43ffdc7a8dbadbe4f68db78d271f4aee
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Tue Oct 22 14:49:45 2019 +0100
remove unused code
---
js/infog/Makefile.am | 2 +-
js/infog/extension.c | 31 -------------------------------
2 files changed, 1 insertion(+), 32 deletions(-)
diff --git a/js/infog/Makefile.am b/js/infog/Makefile.am
index 0646613855..628726fd6f 100644
--- a/js/infog/Makefile.am
+++ b/js/infog/Makefile.am
@@ -10,7 +10,7 @@ libmyappwebextension_la_LDFLAGS = -module -avoid-version
-no-undefined
bin_PROGRAMS=infog
-infog_SOURCES=main.c common.h infopath.c
+infog_SOURCES=main.c common.h infopath.c infopath.h
AM_CFLAGS=`pkg-config --cflags gtk+-3.0 webkit2gtk-4.0`
diff --git a/js/infog/extension.c b/js/infog/extension.c
index 34ff3776cc..b293d74cad 100644
--- a/js/infog/extension.c
+++ b/js/infog/extension.c
@@ -68,37 +68,6 @@ send_datagram (GString *s)
}
static char *current_manual;
-static char *current_manual_dir;
-
-/* Called from request_callback. Return 0 on failure. */
-int
-load_manual_old (char *manual)
-{
- free (current_manual_dir);
- current_manual_dir = locate_manual (manual);
- debug (1, "NEW MANUAL AT %s\n", current_manual_dir);
-
- if (!current_manual_dir)
- {
- free (manual);
- return 0;
- }
-
- current_manual = manual;
-
- /* Inform the main process the manual has changed so that it can
- load the indices. */
- GString *s1 = g_string_new (NULL);
- g_string_append (s1, "new-manual\n");
- g_string_append (s1, current_manual_dir);
- g_string_append (s1, "\n");
-
- send_datagram (s1);
-
- g_string_free (s1, TRUE);
-
- return 1;
-}
int
load_manual (char *manual)
- [no subject], (continued)
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject],
Gavin D. Smith <=
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20