mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 09:37:34 +00:00
LibSQL: Remove unused Tuple::is_compatible
This commit is contained in:
parent
a99c1297e0
commit
fcd35e824c
2 changed files with 0 additions and 22 deletions
|
@ -120,27 +120,6 @@ void Tuple::extend(Tuple const& other)
|
||||||
m_data.extend(other.m_data);
|
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 Tuple::length() const
|
||||||
{
|
{
|
||||||
size_t len = 2 * sizeof(u32);
|
size_t len = 2 * sizeof(u32);
|
||||||
|
|
|
@ -54,7 +54,6 @@ public:
|
||||||
void append(Value const&);
|
void append(Value const&);
|
||||||
Tuple& operator+=(Value const&);
|
Tuple& operator+=(Value const&);
|
||||||
void extend(Tuple const&);
|
void extend(Tuple const&);
|
||||||
[[nodiscard]] bool is_compatible(Tuple const&) const;
|
|
||||||
|
|
||||||
[[nodiscard]] u32 pointer() const { return m_pointer; }
|
[[nodiscard]] u32 pointer() const { return m_pointer; }
|
||||||
void set_pointer(u32 ptr) { m_pointer = ptr; }
|
void set_pointer(u32 ptr) { m_pointer = ptr; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue