mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 12:15:59 +01:00
Remove unnecessary code
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
97cbbe7c06
commit
cbfcd8a1b4
1 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue