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

Commit eed02732 authored by Leon Scroggins III's avatar Leon Scroggins III Committed by Leon Scroggins
Browse files

Remove Flattener::reset

Bug: 183940706
Test: make -j

This method is never used.

Change-Id: I6663188d117a09f8a062681a6e4c6aa9a636a8bb
parent 4fd10d8d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -45,8 +45,6 @@ public:
    // Renders the newest cached sets with the supplied output dataspace
    void renderCachedSets(renderengine::RenderEngine&, ui::Dataspace outputDataspace);

    void reset();

    void dump(std::string& result) const;

private:
+0 −12
Original line number Diff line number Diff line
@@ -60,18 +60,6 @@ void Flattener::renderCachedSets(renderengine::RenderEngine& renderEngine,
    mNewCachedSet->render(renderEngine, outputDataspace);
}

void Flattener::reset() {
    resetActivities(0, std::chrono::steady_clock::now());

    mUnflattenedDisplayCost = 0;
    mFlattenedDisplayCost = 0;
    mInitialLayerCounts.clear();
    mFinalLayerCounts.clear();
    mCachedSetCreationCount = 0;
    mCachedSetCreationCost = 0;
    mInvalidatedCachedSetAges.clear();
}

void Flattener::dump(std::string& result) const {
    const auto now = std::chrono::steady_clock::now();