Skip to content

Commit

Permalink
Remove zeromq macro/remnants
Browse files Browse the repository at this point in the history
  • Loading branch information
who-biz committed Jun 19, 2019
1 parent 66558e5 commit 5c84e0c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 49 deletions.
2 changes: 1 addition & 1 deletion src/rpc/daemon_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ namespace rpc

void DaemonHandler::handle(const GetRPCVersion::Request& req, GetRPCVersion::Response& res)
{
res.version = DAEMON_RPC_VERSION_ZMQ;
res.version = CORE_RPC_VERSION;
res.status = Message::STATUS_OK;
}

Expand Down
1 change: 0 additions & 1 deletion src/rpc/daemon_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#pragma once

#include "daemon_messages.h"
#include "daemon_rpc_version.h"
#include "rpc_handler.h"
#include "cryptonote_core/cryptonote_core.h"
#include "cryptonote_protocol/cryptonote_protocol_handler.h"
Expand Down
1 change: 0 additions & 1 deletion src/rpc/daemon_messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include "message.h"
#include "cryptonote_protocol/cryptonote_protocol_defs.h"
#include "rpc/message_data_structs.h"
#include "rpc/daemon_rpc_version.h"
#include "cryptonote_basic/cryptonote_basic.h"

#define BEGIN_RPC_MESSAGE_CLASS(classname) \
Expand Down
44 changes: 0 additions & 44 deletions src/rpc/daemon_rpc_version.h

This file was deleted.

2 changes: 0 additions & 2 deletions src/rpc/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "message.h"
#include "daemon_rpc_version.h"
#include "serialization/json_object.h"

#include "rapidjson/writer.h"
Expand Down Expand Up @@ -62,7 +61,6 @@ rapidjson::Value Message::toJson(rapidjson::Document& doc) const

val.AddMember("status", rapidjson::StringRef(status.c_str()), al);
val.AddMember("error_details", rapidjson::StringRef(error_details.c_str()), al);
INSERT_INTO_JSON_OBJECT(val, doc, rpc_version, DAEMON_RPC_VERSION_ZMQ);

return val;
}
Expand Down

0 comments on commit 5c84e0c

Please sign in to comment.