diff --git a/mediachanger/RmcProxy.cpp b/mediachanger/RmcProxy.cpp index 458325de61e8894732deff07e813dba0e9f8c6f6..133a077a1752a860a2d1c4c4aeba3553bd39e098 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 5a7522a0ae3099ca272234a02da67acc45d2b6e3..b936565548c5d06280ce67ecb9e817f05ecf1106 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