remove unused params function

old-commit-hash: 94991d9319
commatwo_master
Adeeb Shihadeh 5 years ago
parent b7c4c26012
commit cbafcbcc3c
  1. 1
      selfdrive/boardd/panda.cc
  2. 8
      selfdrive/common/params.cc
  3. 1
      selfdrive/common/params.h

@ -279,7 +279,6 @@ const char* Panda::get_serial(){
delete[] serial_buf; delete[] serial_buf;
return NULL; return NULL;
} }
void Panda::set_power_saving(bool power_saving){ void Panda::set_power_saving(bool power_saving){

@ -62,7 +62,7 @@ static int fsync_dir(const char* path){
goto cleanup; goto cleanup;
} }
cleanup: cleanup:
int result_close = 0; int result_close = 0;
if (fd >= 0){ if (fd >= 0){
result_close = close(fd); result_close = close(fd);
@ -237,10 +237,6 @@ cleanup:
} }
int Params::delete_db_value(std::string key) { int Params::delete_db_value(std::string key) {
return delete_db_value(key.c_str());
}
int Params::delete_db_value(const char* key) {
int lock_fd = -1; int lock_fd = -1;
int result; int result;
std::string path; std::string path;
@ -256,7 +252,7 @@ int Params::delete_db_value(const char* key) {
} }
// Delete value. // Delete value.
path = params_path + "/d/" + std::string(key); path = params_path + "/d/" + key;
result = remove(path.c_str()); result = remove(path.c_str());
if (result != 0) { if (result != 0) {
result = ERR_NO_VALUE; result = ERR_NO_VALUE;

@ -33,7 +33,6 @@ public:
// Delete a value from the params database. // Delete a value from the params database.
// Inputs are the same as read_db_value, without value and value_sz. // Inputs are the same as read_db_value, without value and value_sz.
int delete_db_value(std::string key); int delete_db_value(std::string key);
int delete_db_value(const char* key);
// Reads a value from the params database, blocking until successful. // Reads a value from the params database, blocking until successful.
// Inputs are the same as read_db_value. // Inputs are the same as read_db_value.

Loading…
Cancel
Save