From aafdf81f29735283ad6c904932618ae2cb7e4dc2 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Tue, 26 May 2015 20:25:29 +0300 Subject: [PATCH] Removed unused event code --- .../include/uavcan/protocol/dynamic_node_id_server/event.hpp | 4 ++-- libuavcan/test/protocol/dynamic_node_id_server/event.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libuavcan/include/uavcan/protocol/dynamic_node_id_server/event.hpp b/libuavcan/include/uavcan/protocol/dynamic_node_id_server/event.hpp index 1a75ef7657..d447e01ac6 100644 --- a/libuavcan/include/uavcan/protocol/dynamic_node_id_server/event.hpp +++ b/libuavcan/include/uavcan/protocol/dynamic_node_id_server/event.hpp @@ -38,7 +38,7 @@ enum UAVCAN_EXPORT TraceCode TraceRaftCoreInited, // update interval in usec TraceRaftStateSwitch, // 0 - Follower, 1 - Candidate, 2 - Leader // 15 - TraceRaftActiveSwitch, // 0 - Passive, 1 - Active + Trace0, TraceRaftNewLogEntry, // node ID value TraceRaftRequestIgnored, // node ID of the client TraceRaftVoteRequestReceived, // node ID of the client @@ -115,7 +115,7 @@ public: "RaftBadClusterSizeReceived", "RaftCoreInited", "RaftStateSwitch", - "RaftActiveSwitch", + "", "RaftNewLogEntry", "RaftRequestIgnored", "RaftVoteRequestReceived", diff --git a/libuavcan/test/protocol/dynamic_node_id_server/event.cpp b/libuavcan/test/protocol/dynamic_node_id_server/event.cpp index e8f2c457e6..7405f5d850 100644 --- a/libuavcan/test/protocol/dynamic_node_id_server/event.cpp +++ b/libuavcan/test/protocol/dynamic_node_id_server/event.cpp @@ -13,7 +13,6 @@ TEST(dynamic_node_id_server_EventTracer, EventCodeToString) // Simply checking some error codes ASSERT_STREQ("Error", IEventTracer::getEventName(TraceError)); - ASSERT_STREQ("RaftActiveSwitch", IEventTracer::getEventName(TraceRaftActiveSwitch)); ASSERT_STREQ("RaftAppendEntriesCallFailure", IEventTracer::getEventName(TraceRaftAppendEntriesCallFailure)); ASSERT_STREQ("RaftDiscoveryReceived", IEventTracer::getEventName(TraceRaftDiscoveryReceived)); ASSERT_STREQ("DiscoveryNodeRestartDetected", IEventTracer::getEventName(TraceDiscoveryNodeRestartDetected));