Commit eef0e7f3 authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Martyn Russell

libtracker-miner: Remove useless code

This branch of code would never be executed in practice,
as TrackerFileNotifier can't ever emit ::item-moved on
an unknown file.
parent 0d8ba7ba
......@@ -1560,35 +1560,6 @@ item_move (TrackerMinerFS *fs,
g_free (source_uri);
g_free (uri);
return retval;
} else if (file_info && !source_exists) {
gboolean retval = TRUE;
g_message ("Source file '%s' not found in store to move, indexing '%s' from scratch", source_uri, uri);
/* FIXME: This situation shouldn't happen
* from a TrackerFileNotifier event
*/
#if 0
file_type = g_file_info_get_file_type (file_info);
if (file_type == G_FILE_TYPE_DIRECTORY &&
should_recurse_for_directory (fs, file)) {
/* We're dealing with a recursive directory */
tracker_miner_fs_directory_add_internal (fs, file,
G_PRIORITY_DEFAULT);
retval = TRUE;
} else {
retval = item_add_or_update (fs, file,
G_PRIORITY_DEFAULT,
TRUE);
}
#endif
g_free (source_uri);
g_free (uri);
g_object_unref (file_info);
return retval;
}
......
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