From cbfcd8a1b4d40c222cb79ce2ef851b9a0265ffa2 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 24 Jun 2016 19:17:18 +0200 Subject: [PATCH] Remove unnecessary code Signed-off-by: Sebastian Ramacher --- zathura/file-monitor-glib.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/zathura/file-monitor-glib.c b/zathura/file-monitor-glib.c index 2ea0bb5..418d504 100644 --- a/zathura/file-monitor-glib.c +++ b/zathura/file-monitor-glib.c @@ -46,13 +46,7 @@ start(ZathuraFileMonitor* file_monitor) zathura_filemonitor_get_filepath(file_monitor); /* install file monitor */ - char* file_uri = g_filename_to_uri(file_path, NULL, NULL); - if (file_uri == NULL) { - return; - } - - glib_file_monitor->file = g_file_new_for_uri(file_uri); - g_free(file_uri); + glib_file_monitor->file = g_file_new_for_path(file_path); if (glib_file_monitor->file == NULL) { return; }