Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions cpp/src/arrow/gpu/cuda_memory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -486,23 +486,6 @@ Result<uint8_t*> GetHostAddress(uintptr_t device_ptr) {
return static_cast<uint8_t*>(ptr);
}

Result<std::shared_ptr<MemoryManager>> DefaultMemoryMapper(ArrowDeviceType device_type,
int64_t device_id) {
switch (device_type) {
case ARROW_DEVICE_CPU:
return default_cpu_memory_manager();
case ARROW_DEVICE_CUDA:
case ARROW_DEVICE_CUDA_HOST:
case ARROW_DEVICE_CUDA_MANAGED: {
ARROW_ASSIGN_OR_RAISE(auto device,
arrow::cuda::CudaDevice::Make(static_cast<int>(device_id)));
return device->default_memory_manager();
}
default:
return Status::NotImplemented("memory manager not implemented for device");
}
}

namespace {

Result<std::shared_ptr<MemoryManager>> DefaultCUDADeviceMapper(int64_t device_id) {
Expand Down
6 changes: 0 additions & 6 deletions cpp/src/arrow/gpu/cuda_memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,5 @@ Result<uintptr_t> GetDeviceAddress(const uint8_t* cpu_data,
ARROW_CUDA_EXPORT
Result<uint8_t*> GetHostAddress(uintptr_t device_ptr);

ARROW_DEPRECATED(
"Deprecated in 16.0.0. The CUDA device is registered by default, and you can use "
"arrow::DefaultDeviceMapper instead.")
Result<std::shared_ptr<MemoryManager>> DefaultMemoryMapper(ArrowDeviceType device_type,
int64_t device_id);

} // namespace cuda
} // namespace arrow
5 changes: 0 additions & 5 deletions cpp/src/arrow/type.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3345,11 +3345,6 @@ std::shared_ptr<Field> field(std::string name, std::shared_ptr<DataType> type,
std::move(metadata));
}

std::shared_ptr<DataType> decimal(int32_t precision, int32_t scale) {
return precision <= Decimal128Type::kMaxPrecision ? decimal128(precision, scale)
: decimal256(precision, scale);
}

std::shared_ptr<DataType> smallest_decimal(int32_t precision, int32_t scale) {
return precision <= Decimal32Type::kMaxPrecision ? decimal32(precision, scale)
: precision <= Decimal64Type::kMaxPrecision ? decimal64(precision, scale)
Expand Down
3 changes: 0 additions & 3 deletions cpp/src/arrow/type.h
Original file line number Diff line number Diff line change
Expand Up @@ -2585,9 +2585,6 @@ constexpr bool has_variadic_buffers(Type::type id) {
}
}

ARROW_DEPRECATED("Deprecated in 17.0.0. Use may_have_validity_bitmap() instead.")
constexpr bool HasValidityBitmap(Type::type id) { return may_have_validity_bitmap(id); }

ARROW_EXPORT
std::string ToString(Type::type id);

Expand Down
10 changes: 0 additions & 10 deletions cpp/src/arrow/type_fwd.h
Original file line number Diff line number Diff line change
Expand Up @@ -532,16 +532,6 @@ ARROW_EXPORT const std::shared_ptr<DataType>& date64();
ARROW_EXPORT
std::shared_ptr<DataType> fixed_size_binary(int32_t byte_width);

/// \brief Create a DecimalType instance depending on the precision
///
/// If the precision is greater than 38, a Decimal256Type is returned,
/// otherwise a Decimal128Type.
///
/// Deprecated: prefer `smallest_decimal` instead.
ARROW_DEPRECATED("Deprecated in 18.0. Use `smallest_decimal` instead")
ARROW_EXPORT
std::shared_ptr<DataType> decimal(int32_t precision, int32_t scale);

/// \brief Create a the smallest DecimalType instance depending on precision
///
/// Given the requested precision and scale, the smallest DecimalType which
Expand Down
Loading