From 386250cff8fe7ee263436645b5b7da6e62803f15 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Tue, 17 Sep 2013 13:41:04 -0700 Subject: [PATCH] remove hacked payloads --- libraries/shared/src/Assignment.cpp | 2 +- libraries/shared/src/Assignment.h | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/libraries/shared/src/Assignment.cpp b/libraries/shared/src/Assignment.cpp index d794495c29..cad644652e 100644 --- a/libraries/shared/src/Assignment.cpp +++ b/libraries/shared/src/Assignment.cpp @@ -140,7 +140,7 @@ int Assignment::packToBuffer(unsigned char* buffer) { numPackedBytes += packSocket(buffer + numPackedBytes, socketToPack); } - + return numPackedBytes; } diff --git a/libraries/shared/src/Assignment.h b/libraries/shared/src/Assignment.h index 1f0431187a..adcbf32d2a 100644 --- a/libraries/shared/src/Assignment.h +++ b/libraries/shared/src/Assignment.h @@ -15,8 +15,6 @@ #include "NodeList.h" -const int MAX_PAYLOAD_SIZE = 1024; - /// Holds information used for request, creation, and deployment of assignments class Assignment { public: @@ -68,10 +66,6 @@ public: const sockaddr* getAttachedLocalSocket() { return _attachedLocalSocket; } void setAttachedLocalSocket(const sockaddr* attachedLocalSocket); - unsigned char* getDataPayload() { return _dataPayload; } - int getDataPayloadSize() { return _dataPayloadSize; } - void setDataPayload(unsigned char* data, int length) { memcpy(_dataPayload, data, length); _dataPayloadSize = length; } - /// Packs the assignment to the passed buffer /// \param buffer the buffer in which to pack the assignment /// \return number of bytes packed into buffer @@ -89,8 +83,6 @@ private: sockaddr* _attachedLocalSocket; /// pointer to a local socket that relates to assignment, depends on direction timeval _time; /// time the assignment was created (set in constructor) int _numberOfInstances; /// the number of instances of this assignment - unsigned char _dataPayload[MAX_PAYLOAD_SIZE]; - int _dataPayloadSize; }; QDebug operator<<(QDebug debug, const Assignment &assignment);