mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-10-01 03:43:51 +08:00
params: remove persistent params (#21975)
* cleanup constructors
* remove persistent_param
* remove test_persist_params_put_and_get
old-commit-hash: 3b752a307f
This commit is contained in:
@@ -17,11 +17,8 @@ enum ParamKeyType {
|
||||
};
|
||||
|
||||
class Params {
|
||||
private:
|
||||
std::string params_path;
|
||||
|
||||
public:
|
||||
Params(bool persistent_param = false);
|
||||
Params();
|
||||
Params(const std::string &path);
|
||||
|
||||
bool checkKey(const std::string &key);
|
||||
@@ -78,4 +75,7 @@ public:
|
||||
inline int putBool(const std::string &key, bool val) {
|
||||
return putBool(key.c_str(), val);
|
||||
}
|
||||
|
||||
private:
|
||||
const std::string params_path;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user