Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03240107 authored by John Reck's avatar John Reck
Browse files

Delete dead code

Test: none, it's unused code
Change-Id: If25f4f22d8f3a9819f673bacce9ad4c213dd73ed
parent ce44045d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -36,8 +36,7 @@ PatchCache::PatchCache(RenderState& renderState)
        , mSize(0)
        , mCache(LruCache<PatchDescription, Patch*>::kUnlimitedCapacity)
        , mMeshBuffer(0)
        , mFreeBlocks(nullptr)
        , mGenerationId(0) {}
        , mFreeBlocks(nullptr) {}

PatchCache::~PatchCache() {
    clear();
@@ -158,7 +157,6 @@ void PatchCache::createVertexBuffer() {
        mMaxSize, nullptr, GL_DYNAMIC_DRAW);
    mSize = 0;
    mFreeBlocks = new BufferBlock(0, mMaxSize);
    mGenerationId++;
}

/**
+0 −6
Original line number Diff line number Diff line
@@ -69,10 +69,6 @@ public:
        return mMeshBuffer;
    }

    uint32_t getGenerationId() const {
        return mGenerationId;
    }

    /**
     * Removes the entries associated with the specified 9-patch. This is meant
     * to be called from threads that are not the EGL context thread (GC thread
@@ -175,8 +171,6 @@ private:
    // First available free block inside the mesh buffer
    BufferBlock* mFreeBlocks;

    uint32_t mGenerationId;

    // Garbage tracking, required to handle GC events on the VM side
    Vector<Res_png_9patch*> mGarbage;
    mutable Mutex mLock;