1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Remove UplinkSocket::Message now nothing uses it.

This commit is contained in:
Sadie Powell
2024-02-22 00:04:46 +00:00
parent 82fa7e1467
commit d4f4bcf23c
2 changed files with 0 additions and 36 deletions
-17
View File
@@ -57,22 +57,5 @@ public:
bool ProcessRead() override;
void OnConnect() override;
void OnError(const Anope::string &) override;
/* A message sent over the uplink socket */
class CoreExport [[deprecated]] Message final
{
MessageSource source;
std::stringstream buffer;
public:
Message();
Message(const MessageSource &);
~Message();
template<typename T> Message &operator<<(const T &val)
{
this->buffer << val;
return *this;
}
};
};
extern CoreExport UplinkSocket *UplinkSock;
-19
View File
@@ -170,22 +170,3 @@ void UplinkSocket::OnError(const Anope::string &err)
Log(LOG_TERMINAL) << what << " uplink #" << (Anope::CurrentUplink + 1) << " (" << Config->Uplinks[Anope::CurrentUplink].host << ":" << Config->Uplinks[Anope::CurrentUplink].port << ")" << (!err.empty() ? (": " + err) : "");
error |= !err.empty();
}
UplinkSocket::Message::Message() : source(Me)
{
}
UplinkSocket::Message::Message(const MessageSource &src) : source(src)
{
}
UplinkSocket::Message::~Message()
{
// This is all temporary as UplinkSocket::Message is going to to die as soon
// as everything is migrated to Uplink::Send.
Anope::map<Anope::string> tags;
Anope::string unused, command;
std::vector<Anope::string> params;
if (IRCD->Parse(this->buffer.str(), tags, unused, command, params))
Uplink::SendInternal(tags, source, command, params);
}