From 9c81ec7f495a0bb4fd68c959f06695a20a174550 Mon Sep 17 00:00:00 2001 From: Joe Kirchoff Date: Mon, 21 Mar 2022 14:52:11 -0700 Subject: Remove unused TotalAttachmentsSize (Mac warning) --- zenhttp/httpshared.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'zenhttp/httpshared.cpp') 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(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 -- cgit v1.2.3