universal7885: light: Fix build errors

Change-Id: Iaf45e7885abf3c5b76255a212f3a11aa3e011690
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
roynatech2544 2021-11-19 09:38:34 +00:00
commit 1206a2fb55
No known key found for this signature in database
GPG key ID: 9675C32163D88D30

View file

@ -18,7 +18,6 @@
#include <android-base/stringprintf.h> #include <android-base/stringprintf.h>
#include <log/log.h> #include <log/log.h>
#include <iomanip> #include <iomanip>
#include <sys/stat.h>
#include "Light.h" #include "Light.h"
@ -53,12 +52,6 @@ static T get(const std::string& path, const T& def) {
return file.fail() ? def : result; return file.fail() ? def : result;
} }
template <typename T>
static T exist(const std::string& path) {
struct stat buffer;
return (stat (name.c_str(), &buffer) == 0);
}
Light::Light() { Light::Light() {
mLights.emplace(Type::BACKLIGHT, mLights.emplace(Type::BACKLIGHT,
std::bind(&Light::handleBacklight, this, std::placeholders::_1)); std::bind(&Light::handleBacklight, this, std::placeholders::_1));