Title: [294743] trunk/Source/WebCore/platform/sql/SQLiteStatement.cpp
- Revision
- 294743
- Author
- [email protected]
- Date
- 2022-05-24 06:34:14 -0700 (Tue, 24 May 2022)
Log Message
[sqlite] Remove superfluous assertion
https://bugs.webkit.org/show_bug.cgi?id=240869
Reviewed by NOBODY (OOPS!).
Span::size() always returns a non-negative value, so checking
that the blob's size is greater than zero is unnecessary.
* Source/WebCore/platform/sql/SQLiteStatement.cpp:
(WebCore::SQLiteStatement::bindBlob):
Modified Paths
Diff
Modified: trunk/Source/WebCore/platform/sql/SQLiteStatement.cpp (294742 => 294743)
--- trunk/Source/WebCore/platform/sql/SQLiteStatement.cpp 2022-05-24 13:08:49 UTC (rev 294742)
+++ trunk/Source/WebCore/platform/sql/SQLiteStatement.cpp 2022-05-24 13:34:14 UTC (rev 294743)
@@ -97,7 +97,6 @@
ASSERT(index > 0);
ASSERT(static_cast<unsigned>(index) <= bindParameterCount());
ASSERT(blob.data() || !blob.size());
- ASSERT(blob.size() >= 0);
return sqlite3_bind_blob(m_statement, index, blob.data(), blob.size(), SQLITE_TRANSIENT);
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes