diff options
| author | Per Larsson <[email protected]> | 2022-03-23 14:03:01 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2022-03-23 14:03:01 +0100 |
| commit | a1c5a93627fefa2db6dd3ae620e112ba46065f78 (patch) | |
| tree | 90ae9bf52a10c1ecfcdd85c47fc89ceb22795162 /zenhttp/httpshared.cpp | |
| parent | Map derived data references. (diff) | |
| parent | Added route '/prj/list' for retrieving project info. (diff) | |
| download | zen-a1c5a93627fefa2db6dd3ae620e112ba46065f78.tar.xz zen-a1c5a93627fefa2db6dd3ae620e112ba46065f78.zip | |
Merge branch 'main' into ddcref
Diffstat (limited to 'zenhttp/httpshared.cpp')
| -rw-r--r-- | zenhttp/httpshared.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/zenhttp/httpshared.cpp b/zenhttp/httpshared.cpp index ab1463559..f2ce17e16 100644 --- a/zenhttp/httpshared.cpp +++ b/zenhttp/httpshared.cpp @@ -39,8 +39,6 @@ FormatPackageMessage(const CbPackage& Data) ResponseBuffers.reserve(3 + Attachments.size()); // TODO: may want to use an additional fudge factor here to avoid growing since each // attachment is likely to consist of several buffers - uint64_t TotalAttachmentsSize = 0; - // Fixed size header CbPackageHeader Hdr{.HeaderMagic = kCbPkgMagic, .AttachmentCount = gsl::narrow<uint32_t>(Attachments.size())}; @@ -81,7 +79,6 @@ FormatPackageMessage(const CbPackage& Data) for (const SharedBuffer& Segment : Compressed.GetSegments()) { ResponseBuffers.push_back(Segment.AsIoBuffer()); - TotalAttachmentsSize += Segment.GetSize(); } } else if (CbObject AttachmentObject = Attachment.AsObject()) @@ -100,7 +97,6 @@ FormatPackageMessage(const CbPackage& Data) for (const SharedBuffer& Segment : AttachmentBinary.GetSegments()) { ResponseBuffers.push_back(Segment.AsIoBuffer()); - TotalAttachmentsSize += Segment.GetSize(); } } else |