summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSQL/Tuple.cpp
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2023-04-19 19:03:37 +0200
committerTim Flynn <trflynn89@pm.me>2023-04-23 18:08:17 -0400
commitfcd35e824c70c825aebb0d3a0882cbfba0e1bdc7 (patch)
treedfdeb68eb6e500ba0f9d8d62acedebd4b8094b9d /Userland/Libraries/LibSQL/Tuple.cpp
parenta99c1297e0e5a17797b40b27da50b8b5f92442cf (diff)
downloadserenity-fcd35e824c70c825aebb0d3a0882cbfba0e1bdc7.zip
LibSQL: Remove unused `Tuple::is_compatible`
Diffstat (limited to 'Userland/Libraries/LibSQL/Tuple.cpp')
-rw-r--r--Userland/Libraries/LibSQL/Tuple.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/Userland/Libraries/LibSQL/Tuple.cpp b/Userland/Libraries/LibSQL/Tuple.cpp
index 03c6b13c56..f67020c3d2 100644
--- a/Userland/Libraries/LibSQL/Tuple.cpp
+++ b/Userland/Libraries/LibSQL/Tuple.cpp
@@ -120,27 +120,6 @@ void Tuple::extend(Tuple const& other)
m_data.extend(other.m_data);
}
-bool Tuple::is_compatible(Tuple const& other) const
-{
- if ((m_descriptor->size() == 0) && (other.m_descriptor->size() == 0)) {
- return true;
- }
- if (m_descriptor->size() != other.m_descriptor->size()) {
- return false;
- }
- for (auto ix = 0u; ix < m_descriptor->size(); ix++) {
- auto& my_part = (*m_descriptor)[ix];
- auto& other_part = (*other.m_descriptor)[ix];
- if (my_part.type != other_part.type) {
- return false;
- }
- if (my_part.order != other_part.order) {
- return false;
- }
- }
- return true;
-}
-
size_t Tuple::length() const
{
size_t len = 2 * sizeof(u32);