1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

LibSQL: Clean up code style and remove unused includes

No functional changes.
This commit is contained in:
Jelle Raaijmakers 2023-04-19 19:03:00 +02:00 committed by Tim Flynn
parent 8992ff5aeb
commit a99c1297e0
14 changed files with 43 additions and 96 deletions

View file

@ -36,7 +36,7 @@ struct TupleElementDescriptor {
size_t length() const
{
return (sizeof(u32) + name.length()) + 2 * sizeof(u8);
return sizeof(u32) + name.length() + 2 * sizeof(u8);
}
DeprecatedString to_deprecated_string() const
@ -85,18 +85,16 @@ public:
size_t length() const
{
size_t len = sizeof(u32);
for (auto& element : *this) {
for (auto& element : *this)
len += element.length();
}
return len;
}
DeprecatedString to_deprecated_string() const
{
Vector<DeprecatedString> elements;
for (auto& element : *this) {
for (auto& element : *this)
elements.append(element.to_deprecated_string());
}
return DeprecatedString::formatted("[\n{}\n]", DeprecatedString::join('\n', elements));
}