Commit cbfcd8a1 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Remove unnecessary code

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 97cbbe7c
...@@ -46,13 +46,7 @@ start(ZathuraFileMonitor* file_monitor) ...@@ -46,13 +46,7 @@ start(ZathuraFileMonitor* file_monitor)
zathura_filemonitor_get_filepath(file_monitor); zathura_filemonitor_get_filepath(file_monitor);
/* install file monitor */ /* install file monitor */
char* file_uri = g_filename_to_uri(file_path, NULL, NULL); glib_file_monitor->file = g_file_new_for_path(file_path);
if (file_uri == NULL) {
return;
}
glib_file_monitor->file = g_file_new_for_uri(file_uri);
g_free(file_uri);
if (glib_file_monitor->file == NULL) { if (glib_file_monitor->file == NULL) {
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment