From 7ad7c7fde7f2e0f1fbf1564ee94648833006b094 Mon Sep 17 00:00:00 2001
From: Dimitrios Stoupis <dimitris.apple@gmail.com>
Date: Sun, 31 Mar 2019 15:13:33 +0000
Subject: [PATCH] Remove data check in the type checking function

---
 inc/Message.hpp | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/inc/Message.hpp b/inc/Message.hpp
index 6e2ec8f2..ac1509f9 100644
--- a/inc/Message.hpp
+++ b/inc/Message.hpp
@@ -30,11 +30,6 @@ public:
 	 * @return A boolean value indicating whether the messages are of the same type
 	 */
 	static bool isSameType(const Message &msg1, const Message &msg2) {
-		for (uint16_t i = 0; i < ECSS_MAX_MESSAGE_SIZE; i++) {
-			if (msg1.data[i] != msg2.data[i]) {
-				return false;
-			}
-		}
 		return (msg1.packetType == msg2.packetType) &&
 		       (msg1.messageType == msg2.messageType) && (msg1.serviceType == msg2.serviceType);
 	}
-- 
GitLab