mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
RPC::service is not necessary anymore.
This commit is contained in:
@@ -35,8 +35,6 @@ namespace RPC
|
||||
ERR_METHOD_NOT_FOUND = -32601,
|
||||
ERR_INVALID_PARAMS = -32602,
|
||||
};
|
||||
|
||||
static ServiceReference<RPC::ServiceInterface> service("RPC::ServiceInterface", "rpc");
|
||||
}
|
||||
|
||||
class RPC::Array final
|
||||
|
||||
@@ -388,8 +388,6 @@ public:
|
||||
, anopelistusersrpcevent(this)
|
||||
, anopeuserrpcevent(this)
|
||||
{
|
||||
if (!RPC::service)
|
||||
throw ModuleException("Unable to find RPC interface, is jsonrpc/xmlrpc loaded?");
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
@@ -183,9 +183,6 @@ public:
|
||||
, statsrpcevent(this)
|
||||
{
|
||||
me = this;
|
||||
|
||||
if (!RPC::service)
|
||||
throw ModuleException("Unable to find RPC interface, is jsonrpc/xmlrpc loaded?");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -133,8 +133,6 @@ public:
|
||||
, messageserverrpcevent(this, global)
|
||||
, messageuserrpcevent(this)
|
||||
{
|
||||
if (!RPC::service)
|
||||
throw ModuleException("Unable to find RPC interface, is jsonrpc/xmlrpc loaded?");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -110,8 +110,6 @@ public:
|
||||
, anopedebugtypesrpcevent(this)
|
||||
, systemlistmethodsrpcevent(this)
|
||||
{
|
||||
if (!RPC::service)
|
||||
throw ModuleException("Unable to find RPC interface, is jsonrpc/xmlrpc loaded?");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user