aboutsummaryrefslogtreecommitdiffstats
path: root/ui/help_url.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/help_url.c')
-rw-r--r--ui/help_url.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/ui/help_url.c b/ui/help_url.c
index af12f19c9e..059682d976 100644
--- a/ui/help_url.c
+++ b/ui/help_url.c
@@ -36,33 +36,6 @@
#include <wsutil/unicode-utils.h>
#endif
-/*
- * Given a filename return a filesystem URL. Relative paths are prefixed with
- * the datafile directory path.
- */
-gchar *
-data_file_url(const gchar *filename)
-{
- gchar *file_path;
- gchar *uri;
-
- /* Absolute path? */
- if(g_path_is_absolute(filename)) {
- file_path = g_strdup(filename);
- } else if(running_in_build_directory()) {
- file_path = g_strdup_printf("%s/doc/%s", get_datafile_dir(), filename);
- } else {
- file_path = g_strdup_printf("%s/%s", get_datafile_dir(), filename);
- }
-
- /* XXX - check, if the file is really existing, otherwise display a simple_dialog about the problem */
-
- /* convert filename to uri */
- uri = g_filename_to_uri(file_path, NULL, NULL);
- g_free(file_path);
- return uri;
-}
-
const char *
topic_online_url(topic_action_e action)
{