refactor(bluetooth): remove Bluetooth::status_

The string was always overwritten in `update()`; don't need to store
temporary value in the class.
This commit is contained in:
Aleksei Bavshin
2021-02-02 20:01:01 -08:00
parent 38c29fc242
commit ecc32ddd18
2 changed files with 7 additions and 18 deletions

View File

@ -1,8 +1,5 @@
#pragma once
#include <fmt/chrono.h>
#include <fmt/format.h>
#include "ALabel.hpp"
#include "util/rfkill.hpp"
#include "util/sleeper_thread.hpp"
@ -16,7 +13,6 @@ class Bluetooth : public ALabel {
auto update() -> void;
private:
std::string status_;
util::SleeperThread thread_;
util::Rfkill rfkill_;
};