Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
0b38f1e8
Commit
0b38f1e8
authored
Apr 19, 2021
by
Steven Murray
Browse files
Removed deadwood method RmcProxy::writeRmcMountMsg()
parent
1415e1a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
mediachanger/RmcProxy.cpp
View file @
0b38f1e8
...
...
@@ -128,23 +128,6 @@ int RmcProxy::connectToRmc()
return
smartConnectSock
.
release
();
}
//-----------------------------------------------------------------------------
// writeRmcMountMsg
//-----------------------------------------------------------------------------
void
RmcProxy
::
writeRmcMountMsg
(
const
int
fd
,
const
RmcMountMsgBody
&
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_MOUNT message: "
<<
ne
.
getMessage
().
str
();
throw
ex
;
}
}
//-----------------------------------------------------------------------------
// readRmcMsgHeader
//-----------------------------------------------------------------------------
...
...
mediachanger/RmcProxy.hpp
View file @
0b38f1e8
...
...
@@ -133,15 +133,6 @@ protected:
*/
int
connectToRmc
()
const
;
/**
* Writes an RMC_SCSI_MOUNT 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
writeRmcMountMsg
(
const
int
fd
,
const
RmcMountMsgBody
&
body
)
;
/**
* Reads the header of an RMC_MAGIC message from the specified connection.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment