From 9388e43751f2675471c148f6b7a4727cbcefff4e Mon Sep 17 00:00:00 2001 From: Peter Eisenmann Date: Sat, 16 Mar 2024 19:05:12 +0100 Subject: [PATCH] file: remove x-directory/smb-share special casing The mime type x-directory/smb-share is not used by any current programs anymore. A Github search resulted only in nautilus forks and references to the deprecated gnome-vfs. --- src/nautilus-file.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/nautilus-file.c b/src/nautilus-file.c index d2af3c821..8c9acec87 100644 --- a/src/nautilus-file.c +++ b/src/nautilus-file.c @@ -5001,20 +5001,6 @@ nautilus_file_should_show_directory_item_count (NautilusFile *file) g_return_val_if_fail (NAUTILUS_IS_FILE (file), FALSE); - /* FIXME "x-directory/smb-share" is obsolete. It was set by gnome-vfs in: - * https://gitlab.gnome.org/Archive/gnome-vfs/-/blob/master/modules/smb-method.c - * - * Nowadays, GVfsBackendSmbBrowse sets the "inode/directory" MIME type. - * - * This was introduced by commit f34f0e530982c5bdc0c3baeb2842fdbc2ced5187 - * Do the concerns in that commit's description still apply? - */ - if (file->details->mime_type && - strcmp (file->details->mime_type, "x-directory/smb-share") == 0) - { - return FALSE; - } - /* Add the callback once for the life of our process */ if (!show_directory_item_count_callback_added) {