mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 12:05:32 -04:00
universal7885: light: Fix build errors
Change-Id: Iaf45e7885abf3c5b76255a212f3a11aa3e011690 Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
dac87c4a19
commit
1206a2fb55
1 changed files with 0 additions and 7 deletions
|
|
@ -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));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue