From b5786b0f6879010455272cfeed0668e8d259048c Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 13 May 2013 02:46:37 +0200 Subject: [PATCH] BPackageDataReader: Remove unused Size(), BlockSize() --- headers/os/package/hpkg/PackageDataReader.h | 3 --- .../os/package/hpkg/v1/PackageDataReader.h | 3 --- src/kits/package/hpkg/PackageDataReader.cpp | 21 ------------------- .../package/hpkg/v1/PackageDataReaderV1.cpp | 21 ------------------- 4 files changed, 48 deletions(-) diff --git a/headers/os/package/hpkg/PackageDataReader.h b/headers/os/package/hpkg/PackageDataReader.h index 3d992575c0..a687afb97c 100644 --- a/headers/os/package/hpkg/PackageDataReader.h +++ b/headers/os/package/hpkg/PackageDataReader.h @@ -31,9 +31,6 @@ public: virtual status_t ReadDataToOutput(off_t offset, size_t size, BDataOutput* output) = 0; - virtual uint64 Size() const = 0; - virtual size_t BlockSize() const = 0; - protected: BDataReader* fDataReader; }; diff --git a/headers/os/package/hpkg/v1/PackageDataReader.h b/headers/os/package/hpkg/v1/PackageDataReader.h index 9af3c02ca6..79dbf02936 100644 --- a/headers/os/package/hpkg/v1/PackageDataReader.h +++ b/headers/os/package/hpkg/v1/PackageDataReader.h @@ -36,9 +36,6 @@ public: virtual status_t ReadDataToOutput(off_t offset, size_t size, BDataOutput* output) = 0; - virtual uint64 Size() const = 0; - virtual size_t BlockSize() const = 0; - protected: BDataReader* fDataReader; }; diff --git a/src/kits/package/hpkg/PackageDataReader.cpp b/src/kits/package/hpkg/PackageDataReader.cpp index 55fd31a828..8986c9117f 100644 --- a/src/kits/package/hpkg/PackageDataReader.cpp +++ b/src/kits/package/hpkg/PackageDataReader.cpp @@ -81,17 +81,6 @@ public: return B_OK; } - virtual uint64 Size() const - { - return fSize; - } - - virtual size_t BlockSize() const - { - // TODO: Some other value? - return 64 * 1024; - } - virtual status_t ReadData(off_t offset, void* buffer, size_t size) { if (size == 0) @@ -213,16 +202,6 @@ public: return B_OK; } - virtual uint64 Size() const - { - return fUncompressedSize; - } - - virtual size_t BlockSize() const - { - return fChunkSize; - } - virtual status_t ReadDataToOutput(off_t offset, size_t size, BDataOutput* output) { diff --git a/src/kits/package/hpkg/v1/PackageDataReaderV1.cpp b/src/kits/package/hpkg/v1/PackageDataReaderV1.cpp index 2057767e1d..5eda338b24 100644 --- a/src/kits/package/hpkg/v1/PackageDataReaderV1.cpp +++ b/src/kits/package/hpkg/v1/PackageDataReaderV1.cpp @@ -84,17 +84,6 @@ public: return B_OK; } - virtual uint64 Size() const - { - return fSize; - } - - virtual size_t BlockSize() const - { - // TODO: Some other value? - return 64 * 1024; - } - virtual status_t ReadData(off_t offset, void* buffer, size_t size) { if (size == 0) @@ -216,16 +205,6 @@ public: return B_OK; } - virtual uint64 Size() const - { - return fUncompressedSize; - } - - virtual size_t BlockSize() const - { - return fChunkSize; - } - virtual status_t ReadDataToOutput(off_t offset, size_t size, BDataOutput* output) {