sqlite: remove unused column name helper

Remove the unused column name helper from StatementExecutionHelper.
It became unused after all() and get() switched to cached names.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
PR-URL: https://github.com/nodejs/node/pull/65401
Refs: https://github.com/nodejs/node/pull/65276
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
This commit is contained in:
Trivikram Kamat authored and Antoine du Hamel committed 2026-08-26 00:56:15 +02:00
1 parent 235a0baf8b
commit 60cb384c15
2 files changed
-17

No files matched your search

-14
View File
@@ -3158,20 +3158,6 @@ MaybeLocal<Value> StatementExecutionHelper::ColumnToValue(Environment* env,
return js_val;
}
MaybeLocal<Name> StatementExecutionHelper::ColumnNameToName(Environment* env,
sqlite3_stmt* stmt,
const int column) {
const char* col_name = sqlite3_column_name(stmt, column);
if (col_name == nullptr) {
THROW_ERR_INVALID_STATE(env, "Cannot get name of column %d", column);
return MaybeLocal<Name>();
}
return String::NewFromUtf8(
env->isolate(), col_name, NewStringType::kInternalized)
.As<Name>();
}
void StatementSync::MemoryInfo(MemoryTracker* tracker) const {}
Maybe<void> ExtractRowValues(Environment* env,
-3
View File
@@ -187,9 +187,6 @@ class StatementExecutionHelper {
sqlite3_stmt* stmt,
const int column,
bool use_big_ints);
static v8::MaybeLocal<v8::Name> ColumnNameToName(Environment* env,
sqlite3_stmt* stmt,
const int column);
static v8::MaybeLocal<v8::Value> Get(Environment* env,
StatementSync* statement);
};