Storage Kit: do what the method says in InstalledTypes::_AddSupertype

That is, just add the supertype if it does not exist. Leave getting it
to the callers that need it.

Fixes: #19653
Change-Id: I79d804161d28684e16a0d84ec3a2fb6788c0b506
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9436
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Máximo Castañeda
2025-07-01 18:07:08 +00:00
committed by waddlesplash
parent 8f149016fb
commit 45f3d65457
2 changed files with 7 additions and 13 deletions
@@ -42,8 +42,7 @@ class InstalledTypes {
status_t RemoveType(const char *type);
private:
status_t _AddSupertype(const char *super,
std::map<std::string, Supertype>::iterator &i);
status_t _AddSupertype(const char* super);
status_t _AddSubtype(const char *super, const char *sub);
status_t _AddSubtype(Supertype &super, const char *sub);