tape: remove unused eject_on_unload method

This commit is contained in:
Dietmar Maurer
2021-01-10 16:20:18 +01:00
parent 04df41cec1
commit 6638c034d2
4 changed files with 1 additions and 24 deletions

View File

@ -300,10 +300,6 @@ pub async fn eject_media(drive: String) -> Result<(), Error> {
tokio::task::spawn_blocking(move || {
if let Some((mut changer, _)) = media_changer(&config, &drive)? {
if !changer.eject_on_unload() {
let mut drive = open_drive(&config, &drive)?;
drive.eject_media()?;
}
changer.unload_media(None)?;
} else {
let mut drive = open_drive(&config, &drive)?;