fix(sql): remove unused executable_sql_slice function

This commit is contained in:
t8y2 committed 2026-05-24 15:55:49 +08:00
1 parent b77c02c829
commit fd4d3d2338
1 file changed
-4
-4
View File
@@ -911,10 +911,6 @@ fn has_executable_sql(statement: &str) -> bool {
has_executable_sql_with_options(statement, SqlParsingOptions::default())
}
fn executable_sql_slice(statement: &str, options: SqlParsingOptions) -> Option<&str> {
executable_sql_bounds(statement, options).map(|(start, end)| &statement[start..end])
}
fn executable_sql_bounds(statement: &str, options: SqlParsingOptions) -> Option<(usize, usize)> {
let trimmed_end = statement.trim_end().len();
let trimmed = &statement[..trimmed_end];