From 5cfbb193e6ec2b97d462f621fb3b3668d50ba77a Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Sat, 20 Jun 2015 22:42:54 +0300 Subject: [PATCH] UAVCAN_PACKED_* removed completely, as with the latest optimizations it is not needed anymore --- libuavcan/include/uavcan/build_config.hpp | 11 ----------- .../uavcan/transport/outgoing_transfer_registry.hpp | 2 -- .../include/uavcan/transport/transfer_receiver.hpp | 2 -- 3 files changed, 15 deletions(-) diff --git a/libuavcan/include/uavcan/build_config.hpp b/libuavcan/include/uavcan/build_config.hpp index 578538cf48..5a84f41315 100644 --- a/libuavcan/include/uavcan/build_config.hpp +++ b/libuavcan/include/uavcan/build_config.hpp @@ -82,17 +82,6 @@ # endif #endif -/** - * Struct layout control. - * THIS MAY BREAK THE CODE. - */ -#ifndef UAVCAN_PACKED_BEGIN -# define UAVCAN_PACKED_BEGIN -#endif -#ifndef UAVCAN_PACKED_END -# define UAVCAN_PACKED_END -#endif - /** * Declaration visibility * http://gcc.gnu.org/wiki/Visibility diff --git a/libuavcan/include/uavcan/transport/outgoing_transfer_registry.hpp b/libuavcan/include/uavcan/transport/outgoing_transfer_registry.hpp index f1e5785090..1a85d0b681 100644 --- a/libuavcan/include/uavcan/transport/outgoing_transfer_registry.hpp +++ b/libuavcan/include/uavcan/transport/outgoing_transfer_registry.hpp @@ -16,7 +16,6 @@ namespace uavcan { -UAVCAN_PACKED_BEGIN class UAVCAN_EXPORT OutgoingTransferRegistryKey { DataTypeID data_type_id_; @@ -56,7 +55,6 @@ public: std::string toString() const; #endif }; -UAVCAN_PACKED_END /** * Outgoing transfer registry keeps track of Transfer ID values for all currently existing local transfer senders. diff --git a/libuavcan/include/uavcan/transport/transfer_receiver.hpp b/libuavcan/include/uavcan/transport/transfer_receiver.hpp index b2fcb7ace2..f36083260a 100644 --- a/libuavcan/include/uavcan/transport/transfer_receiver.hpp +++ b/libuavcan/include/uavcan/transport/transfer_receiver.hpp @@ -13,7 +13,6 @@ namespace uavcan { -UAVCAN_PACKED_BEGIN class UAVCAN_EXPORT TransferReceiver { public: @@ -95,7 +94,6 @@ public: MonotonicDuration getInterval() const { return MonotonicDuration::fromMSec(transfer_interval_msec_); } }; -UAVCAN_PACKED_END }