summaryrefslogtreecommitdiff
path: root/firmware/usbstack/usb_storage.c
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2011-12-14 21:45:25 +0000
committerBoris Gjenero <dreamlayers@rockbox.org>2011-12-14 21:45:25 +0000
commit8e6030c8223bfb3102048b2daccbf6a6f4e97ba2 (patch)
tree92f6769d3fbb5936e32d5fb82480b776ea6fbfb9 /firmware/usbstack/usb_storage.c
parent273fbadb5537743829f9830de5247626a11aedca (diff)
downloadrockbox-8e6030c8223bfb3102048b2daccbf6a6f4e97ba2.tar.gz
rockbox-8e6030c8223bfb3102048b2daccbf6a6f4e97ba2.zip
FS#12378 : Remove various unused code, and comment out some unused code and data for reference or future use.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31256 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack/usb_storage.c')
-rw-r--r--firmware/usbstack/usb_storage.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c
index c5fa47fa51..a178f06f87 100644
--- a/firmware/usbstack/usb_storage.c
+++ b/firmware/usbstack/usb_storage.c
@@ -364,24 +364,6 @@ static bool check_disk_present(IF_MD_NONVOID(int volume))
364#endif 364#endif
365} 365}
366 366
367void usb_storage_try_release_storage(void)
368{
369 /* Check if there is a connected drive left. If not,
370 release excusive access */
371 bool canrelease=true;
372 int i;
373 for(i=0;i<storage_num_drives();i++) {
374 if(!ejected[i] && locked[i]) {
375 canrelease=false;
376 break;
377 }
378 }
379 if(canrelease) {
380 logf("scsi release ata");
381 usb_release_exclusive_storage();
382 }
383}
384
385#ifdef HAVE_HOTSWAP 367#ifdef HAVE_HOTSWAP
386void usb_storage_notify_hotswap(int volume,bool inserted) 368void usb_storage_notify_hotswap(int volume,bool inserted)
387{ 369{