Skip to content

Commit bbcaaec

Browse files
committed
Remove obsolete RapidJSON tensor helper
1 parent 3332bfb commit bbcaaec

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

cpp/src/arrow/extension/tensor_internal.cc

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,6 @@
3030

3131
namespace arrow::internal {
3232

33-
namespace {
34-
35-
// Names indexed by rapidjson::Type enum value:
36-
// kNullType=0, kFalseType=1, kTrueType=2, kObjectType=3,
37-
// kArrayType=4, kStringType=5, kNumberType=6.
38-
constexpr const char* kJsonTypeNames[] = {"Null", "False", "True", "Object",
39-
"Array", "String", "Number"};
40-
41-
} // namespace
42-
43-
const char* JsonTypeName(const ::arrow::rapidjson::Value& v) {
44-
return kJsonTypeNames[v.GetType()];
45-
}
46-
4733
Result<int64_t> ComputeShapeProduct(std::span<const int64_t> shape) {
4834
int64_t product = 1;
4935
for (const auto dim : shape) {

cpp/src/arrow/extension/tensor_internal.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,11 @@
2121
#include <span>
2222
#include <vector>
2323

24-
#include "arrow/json/rapidjson_defs.h" // IWYU pragma: keep
2524
#include "arrow/result.h"
2625
#include "arrow/type_fwd.h"
2726

28-
#include <rapidjson/document.h>
29-
3027
namespace arrow::internal {
3128

32-
/// \brief Return the name of a RapidJSON value's type (e.g., "Null", "Array", "Number").
33-
ARROW_EXPORT
34-
const char* JsonTypeName(const ::arrow::rapidjson::Value& v);
35-
3629
/// \brief Compute the product of the given shape dimensions.
3730
///
3831
/// Returns Status::Invalid if the product would overflow int64_t.

0 commit comments

Comments
 (0)