mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 05:32:25 +00:00
Remove unused method. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221757 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
07ac2e2da9
commit
67a38a848e
@ -24,11 +24,6 @@ public:
|
||||
/// Destructor - Override as necessary.
|
||||
virtual ~MemoryObject();
|
||||
|
||||
/// getBase - Returns the lowest valid address in the region.
|
||||
///
|
||||
/// @result - The lowest valid address.
|
||||
virtual uint64_t getBase() const = 0;
|
||||
|
||||
/// getExtent - Returns the size of the region in bytes. (The region is
|
||||
/// contiguous, so the highest valid address of the region
|
||||
/// is getBase() + getExtent() - 1).
|
||||
|
@ -68,7 +68,6 @@ class StreamableMemoryObject : public MemoryObject {
|
||||
class StreamingMemoryObject : public StreamableMemoryObject {
|
||||
public:
|
||||
StreamingMemoryObject(DataStreamer *streamer);
|
||||
uint64_t getBase() const override { return 0; }
|
||||
uint64_t getExtent() const override;
|
||||
int readByte(uint64_t address, uint8_t *ptr) const override;
|
||||
int readBytes(uint64_t address, uint64_t size,
|
||||
|
@ -17,7 +17,7 @@ int MemoryObject::readBytes(uint64_t address,
|
||||
uint64_t size,
|
||||
uint8_t* buf) const {
|
||||
uint64_t current = address;
|
||||
uint64_t limit = getBase() + getExtent();
|
||||
uint64_t limit = getExtent();
|
||||
|
||||
if (current + size > limit)
|
||||
return -1;
|
||||
|
@ -25,7 +25,6 @@ public:
|
||||
assert(LastChar >= FirstChar && "Invalid start/end range");
|
||||
}
|
||||
|
||||
uint64_t getBase() const override { return 0; }
|
||||
uint64_t getExtent() const override {
|
||||
return LastChar - FirstChar;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user