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

Commit 713d1531 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Delete dead code"

parents 3eda170b 03240107
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;