From 39c7fd7acb52e4e921a82a3d82ceb1a1b3d4db68 Mon Sep 17 00:00:00 2001 From: Steven Murray <Steven.Murray@cern.ch> Date: Mon, 19 Apr 2021 20:09:30 +0200 Subject: [PATCH] Removed deadwood method RmcProxy::writeRmcUnmountMsg() --- mediachanger/RmcProxy.cpp | 17 ----------------- mediachanger/RmcProxy.hpp | 9 --------- 2 files changed, 26 deletions(-) diff --git a/mediachanger/RmcProxy.cpp b/mediachanger/RmcProxy.cpp index 458325de61..133a077a17 100644 --- a/mediachanger/RmcProxy.cpp +++ b/mediachanger/RmcProxy.cpp @@ -159,23 +159,6 @@ MessageHeader RmcProxy::readRmcMsgHeader(const int fd) { return header; } -//----------------------------------------------------------------------------- -// writeRmcUnmountMsg -//----------------------------------------------------------------------------- -void RmcProxy::writeRmcUnmountMsg(const int fd, const RmcUnmountMsgBody &body) { - char buf[RMC_MSGBUFSIZ]; - const size_t len = marshal(buf, body); - - try { - writeBytes(fd, m_netTimeout, len, buf); - } catch(cta::exception::Exception &ne) { - cta::exception::Exception ex; - ex.getMessage() << "Failed to write RMC_SCSI_UNMOUNT message: " - << ne.getMessage().str(); - throw ex; - } -} - //----------------------------------------------------------------------------- // rmcReplyTypeToStr //----------------------------------------------------------------------------- diff --git a/mediachanger/RmcProxy.hpp b/mediachanger/RmcProxy.hpp index 5a7522a0ae..b936565548 100644 --- a/mediachanger/RmcProxy.hpp +++ b/mediachanger/RmcProxy.hpp @@ -141,15 +141,6 @@ protected: */ MessageHeader readRmcMsgHeader(const int fd) ; - /** - * Writes an RMC_SCSI_UNMOUNT message with the specifed body to the specified - * connection. - * - * @param fd The file descriptor of the connection. - * @param body The body of the message. - */ - void writeRmcUnmountMsg(const int fd, const RmcUnmountMsgBody &body) ; - /** * Sends the specified request to the rmcd daemon and receives the reply * until success or the specified number of retriable attempts has been -- GitLab