Skip to content

Commit

Permalink
Remove duplciates in star/dso name index
Browse files Browse the repository at this point in the history
  • Loading branch information
levinli303 committed Oct 19, 2021
1 parent d39d47b commit b558b53
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/celengine/dsodb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,6 @@ bool DSODatabase::load(istream& in, const fs::path& resourcePath)
}
string DSOName = objName.substr(startPos, length);
namesDB->add(objCatalogNumber, DSOName);
if (DSOName != _(DSOName.c_str()))
namesDB->add(objCatalogNumber, _(DSOName.c_str()));
startPos = next;
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/celengine/stardb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1373,8 +1373,6 @@ bool StarDatabase::load(istream& in, const fs::path& resourcePath)
}
string starName = objName.substr(startPos, length);
namesDB->add(catalogNumber, starName);
if (starName != _(starName.c_str()))
namesDB->add(catalogNumber, _(starName.c_str()));
startPos = next;
}
}
Expand Down

0 comments on commit b558b53

Please sign in to comment.