1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

LibSQL: Remove now-unused SQLResult class

This commit is contained in:
Timothy Flynn 2022-02-09 16:00:45 -05:00 committed by Linus Groh
parent 6620f19979
commit aff17a2fbd
3 changed files with 0 additions and 113 deletions

View file

@ -9,26 +9,6 @@
namespace SQL {
void SQLResult::insert(Tuple const& row, Tuple const& sort_key)
{
m_has_results = true;
m_result_set.insert_row(row, sort_key);
}
void SQLResult::limit(size_t offset, size_t limit)
{
if (offset > 0) {
if (offset > m_result_set.size()) {
m_result_set.clear();
return;
}
m_result_set.remove(0, offset);
}
if (m_result_set.size() > limit) {
m_result_set.remove(limit, m_result_set.size() - limit);
}
}
void Result::insert(Tuple const& row, Tuple const& sort_key)
{
if (!m_result_set.has_value())