aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpshared.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2022-03-23 14:03:01 +0100
committerPer Larsson <[email protected]>2022-03-23 14:03:01 +0100
commita1c5a93627fefa2db6dd3ae620e112ba46065f78 (patch)
tree90ae9bf52a10c1ecfcdd85c47fc89ceb22795162 /zenhttp/httpshared.cpp
parentMap derived data references. (diff)
parentAdded route '/prj/list' for retrieving project info. (diff)
downloadzen-a1c5a93627fefa2db6dd3ae620e112ba46065f78.tar.xz
zen-a1c5a93627fefa2db6dd3ae620e112ba46065f78.zip
Merge branch 'main' into ddcref
Diffstat (limited to 'zenhttp/httpshared.cpp')
-rw-r--r--zenhttp/httpshared.cpp4
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