From 6fefdba2b83ae7b792ba01852053f9f50c04c3a6 Mon Sep 17 00:00:00 2001 From: Alex Watt Date: Thu, 29 Feb 2024 23:24:04 -0500 Subject: [PATCH] Remove FunctionProxy#count This code depends on a SQLite API which is deprecated, sqlite3_aggregate_count. In addition, the present implementation is broken (@driver is always nil). Related: #164. --- lib/sqlite3/database.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/sqlite3/database.rb b/lib/sqlite3/database.rb index b7f78016..8fa8730d 100644 --- a/lib/sqlite3/database.rb +++ b/lib/sqlite3/database.rb @@ -725,13 +725,6 @@ def set_error(error) @driver.result_error(@func, error.to_s, -1) end - # (Only available to aggregate functions.) Returns the number of rows - # that the aggregate has processed so far. This will include the current - # row, and so will always return at least 1. - def count - @driver.aggregate_count(@func) - end - # Returns the value with the given key from the context. This is only # available to aggregate functions. def [](key)