summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/uplink.h17
-rw-r--r--src/uplink.cpp19
2 files changed, 0 insertions, 36 deletions
diff --git a/include/uplink.h b/include/uplink.h
index 20bd26f80..12365dd65 100644
--- a/include/uplink.h
+++ b/include/uplink.h
@@ -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;
diff --git a/src/uplink.cpp b/src/uplink.cpp
index c3c6dbd41..a6343f7db 100644
--- a/src/uplink.cpp
+++ b/src/uplink.cpp
@@ -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);
-}