summaryrefslogtreecommitdiff
path: root/src/RpcMethodFactory.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-11 21:50:47 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-11 21:50:47 +0900
commit59e63d956ee63d99202b67a32e8a277f3b04650d (patch)
tree40bedb5e5b02cb415a59916be2beee39cd20071e /src/RpcMethodFactory.h
parent7c06b903f3493db95fcf4bd42cccc59e3b4d0692 (diff)
Rewrite RPC method factory function
Diffstat (limited to 'src/RpcMethodFactory.h')
-rw-r--r--src/RpcMethodFactory.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/RpcMethodFactory.h b/src/RpcMethodFactory.h
index 5d479d56..07f83c58 100644
--- a/src/RpcMethodFactory.h
+++ b/src/RpcMethodFactory.h
@@ -38,7 +38,6 @@
#include "common.h"
#include <string>
-#include <map>
#include <memory>
namespace aria2 {
@@ -47,12 +46,7 @@ namespace rpc {
class RpcMethod;
-class RpcMethodFactory {
-public:
- static std::shared_ptr<RpcMethod> create(const std::string& methodName);
-private:
- static std::map<std::string, std::shared_ptr<RpcMethod> > cache_;
-};
+RpcMethod* getMethod(const std::string& methodName);
} // namespace rpc