aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpshared.cpp
diff options
context:
space:
mode:
authorJoe Kirchoff <[email protected]>2022-03-21 14:52:11 -0700
committerJoe Kirchoff <[email protected]>2022-03-21 14:52:11 -0700
commit9c81ec7f495a0bb4fd68c959f06695a20a174550 (patch)
treebf22d8cb6b379118cfa71189f5046f890ded2d39 /zenhttp/httpshared.cpp
parentclang-format (diff)
downloadzen-9c81ec7f495a0bb4fd68c959f06695a20a174550.tar.xz
zen-9c81ec7f495a0bb4fd68c959f06695a20a174550.zip
Remove unused TotalAttachmentsSize (Mac warning)
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