summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-desktop-link-monitor.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-08-21 03:29:50 +0300
committermonsta <[email protected]>2016-08-22 16:40:21 +0300
commit3c6122df79f4d6e86d7afa0e6c4b64403de7bc44 (patch)
treebd06579cadb62b290fb983f61a02e4dedb3f64b1 /libcaja-private/caja-desktop-link-monitor.c
parent6f295db45ebcb52c6e9ad39f8d639e35f88c5ef5 (diff)
downloadcaja-3c6122df79f4d6e86d7afa0e6c4b64403de7bc44.tar.bz2
caja-3c6122df79f4d6e86d7afa0e6c4b64403de7bc44.tar.xz
drop a large amount of completely unused code
Diffstat (limited to 'libcaja-private/caja-desktop-link-monitor.c')
-rw-r--r--libcaja-private/caja-desktop-link-monitor.c64
1 files changed, 0 insertions, 64 deletions
diff --git a/libcaja-private/caja-desktop-link-monitor.c b/libcaja-private/caja-desktop-link-monitor.c
index 5a959d20..05cb7f4a 100644
--- a/libcaja-private/caja-desktop-link-monitor.c
+++ b/libcaja-private/caja-desktop-link-monitor.c
@@ -89,70 +89,6 @@ caja_desktop_link_monitor_get (void)
return the_link_monitor;
}
-static void
-volume_delete_dialog (GtkWidget *parent_view,
- CajaDesktopLink *link)
-{
- GMount *mount;
- char *dialog_str;
- char *display_name;
-
- mount = caja_desktop_link_get_mount (link);
-
- if (mount != NULL)
- {
- display_name = caja_desktop_link_get_display_name (link);
- dialog_str = g_strdup_printf (_("You cannot move the volume \"%s\" to the trash."),
- display_name);
- g_free (display_name);
-
- if (g_mount_can_eject (mount))
- {
- eel_run_simple_dialog
- (parent_view,
- FALSE,
- GTK_MESSAGE_ERROR,
- dialog_str,
- _("If you want to eject the volume, please use \"Eject\" in the "
- "popup menu of the volume."),
- GTK_STOCK_OK, NULL);
- }
- else
- {
- eel_run_simple_dialog
- (parent_view,
- FALSE,
- GTK_MESSAGE_ERROR,
- dialog_str,
- _("If you want to unmount the volume, please use \"Unmount Volume\" in the "
- "popup menu of the volume."),
- GTK_STOCK_OK, NULL);
- }
-
- g_object_unref (mount);
- g_free (dialog_str);
- }
-}
-
-void
-caja_desktop_link_monitor_delete_link (CajaDesktopLinkMonitor *monitor,
- CajaDesktopLink *link,
- GtkWidget *parent_view)
-{
- switch (caja_desktop_link_get_link_type (link))
- {
- case CAJA_DESKTOP_LINK_HOME:
- case CAJA_DESKTOP_LINK_COMPUTER:
- case CAJA_DESKTOP_LINK_TRASH:
- case CAJA_DESKTOP_LINK_NETWORK:
- /* just ignore. We don't allow you to delete these */
- break;
- default:
- volume_delete_dialog (parent_view, link);
- break;
- }
-}
-
static gboolean
volume_file_name_used (CajaDesktopLinkMonitor *monitor,
const char *name)