mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-10 08:11:55 +00:00
Prune unused nodes from trie
This commit is contained in:
@@ -295,7 +295,7 @@ int SystemProperties::Add(const char* name, unsigned int namelen, const char* va
|
||||
return 0;
|
||||
}
|
||||
|
||||
int SystemProperties::Delete(const char *name) {
|
||||
int SystemProperties::Delete(const char *name, bool trim_node) {
|
||||
if (!initialized_) {
|
||||
return -1;
|
||||
}
|
||||
@@ -311,7 +311,7 @@ int SystemProperties::Delete(const char *name) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
bool ret = pa->rm(name);
|
||||
bool ret = pa->rm(name, trim_node);
|
||||
if (!ret) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user