diff --git a/cpp/src/arrow/filesystem/gcsfs.h b/cpp/src/arrow/filesystem/gcsfs.h index ba8db8bdbc5fe..6a1c867abc725 100644 --- a/cpp/src/arrow/filesystem/gcsfs.h +++ b/cpp/src/arrow/filesystem/gcsfs.h @@ -230,10 +230,6 @@ class ARROW_EXPORT GcsFileSystem : public FileSystem { const std::string& path, const std::shared_ptr& metadata) override; - ARROW_DEPRECATED("Deprecated in 19.0.0. Use the Result version instead.") - static std::shared_ptr Make( - const GcsOptions& options, const io::IOContext& = io::default_io_context()); - /// Create a GcsFileSystem instance from the given options. static Result> Make( const GcsOptions& options, const io::IOContext& = io::default_io_context()); diff --git a/r/src/filesystem.cpp b/r/src/filesystem.cpp index 2274a3d7ff7a2..fecbf92266b9c 100644 --- a/r/src/filesystem.cpp +++ b/r/src/filesystem.cpp @@ -359,8 +359,8 @@ void FinalizeS3() { std::shared_ptr strings_to_kvm(cpp11::strings metadata); // [[gcs::export]] -std::shared_ptr fs___GcsFileSystem__Make(bool anonymous, - cpp11::list options) { +Result> fs___GcsFileSystem__Make(bool anonymous, + cpp11::list options) { fs::GcsOptions gcs_opts; // Handle auth (anonymous, credentials, default) @@ -429,7 +429,7 @@ std::shared_ptr fs___GcsFileSystem__Make(bool anonymous, } auto io_context = MainRThread::GetInstance().CancellableIOContext(); - // TODO(ARROW-16884): update when this returns Result + return fs::GcsFileSystem::Make(gcs_opts, io_context); }