From 1206a2fb55325cd107cfa88165ac0fd5f40afcc7 Mon Sep 17 00:00:00 2001 From: roynatech2544 Date: Fri, 19 Nov 2021 09:38:34 +0000 Subject: [PATCH] universal7885: light: Fix build errors Change-Id: Iaf45e7885abf3c5b76255a212f3a11aa3e011690 Signed-off-by: roynatech2544 --- universal7885-common/light/Light.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/universal7885-common/light/Light.cpp b/universal7885-common/light/Light.cpp index 139a449..f378e06 100644 --- a/universal7885-common/light/Light.cpp +++ b/universal7885-common/light/Light.cpp @@ -18,7 +18,6 @@ #include #include #include -#include #include "Light.h" @@ -53,12 +52,6 @@ static T get(const std::string& path, const T& def) { return file.fail() ? def : result; } -template -static T exist(const std::string& path) { - struct stat buffer; - return (stat (name.c_str(), &buffer) == 0); -} - Light::Light() { mLights.emplace(Type::BACKLIGHT, std::bind(&Light::handleBacklight, this, std::placeholders::_1));