BPackageDataReader: Remove unused Size(), BlockSize()
This commit is contained in:
parent
dd0b33cb63
commit
b5786b0f68
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user