From 1661abee7926c119d569988b2e3d92197de03a0f Mon Sep 17 00:00:00 2001 From: ngiddings Date: Sat, 10 Apr 2021 21:13:15 -0500 Subject: [PATCH] Removed more useless C++ files --- src/message.cpp | 38 ------------------------------- src/message.hpp | 59 ------------------------------------------------- 2 files changed, 97 deletions(-) delete mode 100644 src/message.cpp delete mode 100644 src/message.hpp diff --git a/src/message.cpp b/src/message.cpp deleted file mode 100644 index 2f503d5..0000000 --- a/src/message.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include "message.hpp" - -Message::Message() -{ - m_sender = 0; - m_type = 0; - m_args[0] = 0; - m_args[1] = 0; - m_args[2] = 0; -} - -Message::Message(const Message& copy) -{ - m_sender = copy.m_sender; - m_type = copy.m_type; - m_args[0] = copy.m_args[0]; - m_args[1] = copy.m_args[1]; - m_args[2] = copy.m_args[2]; -} - -Message::Message(unsigned int sender, unsigned int type, - unsigned long arg1, unsigned long arg2, unsigned long arg3) -{ - m_sender = sender; - m_type = type; - m_args[0] = arg1; - m_args[1] = arg2; - m_args[2] = arg3; -} - -Message& Message::operator=(const Message& rhs) -{ - m_sender = rhs.m_sender; - m_type = rhs.m_type; - m_args[0] = rhs.m_args[0]; - m_args[1] = rhs.m_args[1]; - m_args[2] = rhs.m_args[2]; -} \ No newline at end of file diff --git a/src/message.hpp b/src/message.hpp deleted file mode 100644 index 0702b1e..0000000 --- a/src/message.hpp +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef MESSAGE_H -#define MESSAGE_H - -struct Message -{ - - /** - * @brief Default constructor. Initializes all members to 0. - * - */ - Message(); - - /** - * @brief Copy constructor. - * - * @param copy - */ - Message(const Message& copy); - - /** - * @brief Construct a new Message object. - * - * @param sender - * @param type - * @param arg1 - * @param arg2 - * @param arg3 - */ - Message(unsigned int sender, unsigned int type, - unsigned long arg1, unsigned long arg2, unsigned long arg3); - - /** - * @brief Copy the contents of `rhs` to this object. - * - * @param rhs - * @return Message& - */ - Message& operator=(const Message& rhs); - - /** - * @brief PID of the process that generated this message. - */ - unsigned int m_sender; - - /** - * @brief Context-specific parameter which indicates to the receiver how - * the arguments are to be interpreted. - */ - unsigned int m_type; - - /** - * @brief Arguments of this message. The meaning of these values depend on - * context, as well as the values of `m_sender` and `m_type`. - */ - unsigned long m_args[3]; - -}; - -#endif \ No newline at end of file