From 82de19bc5532d68df8f497062882d8d594a4f8f2 Mon Sep 17 00:00:00 2001 From: Marin Shalamanov Date: Thu, 28 Oct 2021 16:34:42 +0200 Subject: Remove dead code around use_frame_rate_api There's no se polixy for ro.surface_flinger.use_frame_rate_api and it cannot be used by vendors, so the code is dead. Removing it cos there isn't a use case for disabling this API. Bug: 199911262 Test: n/a Change-Id: I45aabf5ced73d565a5d7adc73971f3615dde0abe --- services/surfaceflinger/Layer.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'services/surfaceflinger/Layer.cpp') diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 388181c231..94781751fb 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -1157,9 +1157,6 @@ void Layer::updateTreeHasFrameRateVote() { } bool Layer::setFrameRate(FrameRate frameRate) { - if (!mFlinger->useFrameRateApi) { - return false; - } if (mDrawingState.frameRate == frameRate) { return false; } -- cgit v1.2.3-59-g8ed1b