Skip to content

Commit

Permalink
Remove old DataTable methods
Browse files Browse the repository at this point in the history
  • Loading branch information
morzhovets committed Jul 18, 2024
1 parent 3e9b08d commit 3e97aba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
21 changes: 0 additions & 21 deletions include/momo/DataTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -756,13 +756,6 @@ class DataTable
return pvSelectEmpty();
}

template<typename... Items>
requires (sizeof...(Items) > 1)
ConstSelection Select(Equality<Items>... equals) const
{
return pvSelect<Selection>(FastCopyableFunctor(EmptyRowFilter()), equals...);
}

template<internal::conceptPredicate<ConstRowReference> RowFilter = EmptyRowFilter,
typename... Items>
ConstSelection Select(RowFilter rowFilter = RowFilter(), Equality<Items>... equals) const
Expand All @@ -777,13 +770,6 @@ class DataTable
return pvSelect<Selection>(equals, FastCopyableFunctor<RowFilter>(rowFilter));
}

template<typename... Items>
requires (sizeof...(Items) > 1)
Selection Select(Equality<Items>... equals)
{
return pvSelect<Selection>(FastCopyableFunctor(EmptyRowFilter()), equals...);
}

template<internal::conceptPredicate<ConstRowReference> RowFilter = EmptyRowFilter,
typename... Items>
Selection Select(RowFilter rowFilter = RowFilter(), Equality<Items>... equals)
Expand All @@ -798,13 +784,6 @@ class DataTable
return pvSelect<Selection>(equals, FastCopyableFunctor<RowFilter>(rowFilter));
}

template<typename... Items>
requires (sizeof...(Items) > 1)
size_t SelectCount(Equality<Items>... equals) const
{
return pvSelect<size_t>(FastCopyableFunctor(EmptyRowFilter()), equals...);
}

template<internal::conceptPredicate<ConstRowReference> RowFilter = EmptyRowFilter,
typename... Items>
size_t SelectCount(RowFilter rowFilter = RowFilter(), Equality<Items>... equals) const
Expand Down
7 changes: 0 additions & 7 deletions test/sources/SimpleDataTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,6 @@ class SimpleDataTester
assert(table.Select(momo::DataEquality(dblCol, 1.0)).GetCount() == 1);
assert(ctable.Select(momo::DataEquality(dblCol, 1.0)).GetCount() == 1);

assert(table.SelectCount(
momo::DataEquality(strCol, "0"), momo::DataEquality(intCol, 1)) == 1);
assert(table.Select(
momo::DataEquality(intCol, 0), momo::DataEquality(strCol, "1")).GetCount() == 1);
assert(ctable.Select(
momo::DataEquality(strCol, "1"), momo::DataEquality(intCol, 0)).GetCount() == 1);

assert(table.SelectCount(
momo::DataEquality(strCol, "0").And(intCol, 1).And(dblCol, 1.0)) == 1);
assert(table.Select(
Expand Down

0 comments on commit 3e97aba

Please sign in to comment.