Remove obsolete and unused multi_send_data_direct
All callers now use the multi_command<C> form, so there is no need for the form that allows a free pointer and length.
This commit is contained in:
parent
b737524415
commit
61d1ef9904
|
@ -1055,22 +1055,6 @@ static void _multi_send_data_direct(const ubyte *buf, unsigned len, const player
|
|||
}
|
||||
}
|
||||
|
||||
template <multiplayer_command_t C>
|
||||
static void multi_send_data_direct(uint8_t *const buf, const unsigned len, const playernum_t pnum, const int priority)
|
||||
{
|
||||
buf[0] = C;
|
||||
unsigned expected = command_length<C>::value;
|
||||
#ifdef DXX_CONSTANT_TRUE
|
||||
if (DXX_CONSTANT_TRUE(len != expected))
|
||||
DXX_ALWAYS_ERROR_FUNCTION(dxx_trap_multi_send_data, "wrong packet size");
|
||||
#endif
|
||||
if (len != expected)
|
||||
{
|
||||
Error("multi_send_data_direct: Packet type %i length: %i, expected: %i\n", C, len, expected);
|
||||
}
|
||||
_multi_send_data_direct(buf, len, pnum, priority);
|
||||
}
|
||||
|
||||
template <multiplayer_command_t C>
|
||||
static inline void multi_send_data_direct(multi_command<C> &buf, const playernum_t pnum, const int priority)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue