summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-05-19 13:35:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-05-20 12:55:07 +0200
commit8270eb5d5600cc84dbf5f0e339f90c4519ef88bb (patch)
tree6253324edd37e5b13c17436a6378ee58ba6a723b /package
parent4f3dd930324552aec40b333d750ec7b95ff03c26 (diff)
loplugin:unusedmethods
Change-Id: Ief95f111350808f010539bb733a553007d30a9df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152006 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r--package/inc/ByteChucker.hxx13
-rw-r--r--package/source/zipapi/MemoryByteGrabber.hxx16
2 files changed, 0 insertions, 29 deletions
diff --git a/package/inc/ByteChucker.hxx b/package/inc/ByteChucker.hxx
index c502ad6b5c42..f5d020205006 100644
--- a/package/inc/ByteChucker.hxx
+++ b/package/inc/ByteChucker.hxx
@@ -71,19 +71,6 @@ public:
WriteBytes( a4Sequence );
}
- void WriteInt64(sal_Int64 nInt64)
- {
- p8Sequence[0] = static_cast<sal_Int8>((nInt64 >> 0) & 0xFF);
- p8Sequence[1] = static_cast<sal_Int8>((nInt64 >> 8) & 0xFF);
- p8Sequence[2] = static_cast<sal_Int8>((nInt64 >> 16) & 0xFF);
- p8Sequence[3] = static_cast<sal_Int8>((nInt64 >> 24) & 0xFF);
- p8Sequence[4] = static_cast<sal_Int8>((nInt64 >> 32) & 0xFF);
- p8Sequence[5] = static_cast<sal_Int8>((nInt64 >> 40) & 0xFF);
- p8Sequence[6] = static_cast<sal_Int8>((nInt64 >> 48) & 0xFF);
- p8Sequence[7] = static_cast<sal_Int8>((nInt64 >> 56) & 0xFF);
- WriteBytes( a8Sequence );
- }
-
void WriteUInt64(sal_uInt64 nuInt64)
{
p8Sequence[0] = static_cast<sal_Int8>((nuInt64 >> 0) & 0xFF);
diff --git a/package/source/zipapi/MemoryByteGrabber.hxx b/package/source/zipapi/MemoryByteGrabber.hxx
index de59756d2187..d474be40cda5 100644
--- a/package/source/zipapi/MemoryByteGrabber.hxx
+++ b/package/source/zipapi/MemoryByteGrabber.hxx
@@ -92,22 +92,6 @@ public:
return nInt32;
}
- sal_Int64 ReadInt64()
- {
- if (mnCurrent + 8 > mnEnd)
- return 0;
-
- sal_Int64 nInt64 = mpBuffer[mnCurrent++] & 0xFF;
- nInt64 |= static_cast<sal_Int64>(mpBuffer[mnCurrent++] & 0xFF) << 8;
- nInt64 |= static_cast<sal_Int64>(mpBuffer[mnCurrent++] & 0xFF) << 16;
- nInt64 |= static_cast<sal_Int64>(mpBuffer[mnCurrent++] & 0xFF) << 24;
- nInt64 |= static_cast<sal_Int64>(mpBuffer[mnCurrent++] & 0xFF) << 32;
- nInt64 |= static_cast<sal_Int64>(mpBuffer[mnCurrent++] & 0xFF) << 40;
- nInt64 |= static_cast<sal_Int64>(mpBuffer[mnCurrent++] & 0xFF) << 48;
- nInt64 |= static_cast<sal_Int64>(mpBuffer[mnCurrent++] & 0xFF) << 56;
- return nInt64;
- }
-
sal_uInt64 ReadUInt64()
{
if (mnCurrent + 8 > mnEnd)