From e2eb37b40a9dd3b2b88c6e2aff2e828520fd8b02 Mon Sep 17 00:00:00 2001 From: dentiny Date: Sat, 27 Sep 2025 08:17:06 +0000 Subject: [PATCH] [minor] Remove unused function --- src/httpfs_extension.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/httpfs_extension.cpp b/src/httpfs_extension.cpp index 79d9923..a1d8883 100644 --- a/src/httpfs_extension.cpp +++ b/src/httpfs_extension.cpp @@ -15,25 +15,6 @@ namespace duckdb { -static void SetHttpfsClientImplementation(DBConfig &config, const string &value) { - if (config.http_util && config.http_util->GetName() == "WasmHTTPUtils") { - if (value == "wasm" || value == "default") { - // Already handled, do not override - return; - } - throw InvalidInputException("Unsupported option for httpfs_client_implementation, only `wasm` and " - "`default` are currently supported for duckdb-wasm"); - } - if (value == "httplib" || value == "default") { - if (!config.http_util || config.http_util->GetName() != "HTTPFSUtil") { - config.http_util = make_shared_ptr(); - } - return; - } - throw InvalidInputException("Unsupported option for httpfs_client_implementation, only `curl`, `httplib` and " - "`default` are currently supported"); -} - static void LoadInternal(ExtensionLoader &loader) { auto &instance = loader.GetDatabaseInstance(); auto &fs = instance.GetFileSystem();