Skip to content

Commit

Permalink
Simplify GetVertical
Browse files Browse the repository at this point in the history
  • Loading branch information
BUYT-1 committed Jan 31, 2024
1 parent 3e42dff commit 791db68
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/core/model/table/relational_schema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ std::unique_ptr<RelationalSchema> RelationalSchema::CreateFrom(model::IDatasetSt
// TODO: В оригинале тут что-то непонятное + приходится пересоздавать empty_vertical_ -- тут
// должен быть unique_ptr, тк создаём в остальных случаях новую вершину и выдаём наружу с овнершипом
Vertical RelationalSchema::GetVertical(boost::dynamic_bitset<> indices) const {
if (indices.empty()) return *Vertical::EmptyVertical(this);

if (indices.count() == 1) {
return Vertical(this, std::move(indices));
}
return Vertical(this, std::move(indices));
}

Expand Down

0 comments on commit 791db68

Please sign in to comment.