You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by gi...@apache.org on 2022/08/25 16:38:42 UTC

[arrow-nanoarrow] branch main updated: Update dist/ for commit 6953efeb0657c72fd66af8f34be66e0a3ed0e26a

This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git


The following commit(s) were added to refs/heads/main by this push:
     new d31a1ac  Update dist/ for commit 6953efeb0657c72fd66af8f34be66e0a3ed0e26a
d31a1ac is described below

commit d31a1ac27ba7a6508dc515a2db4442f99c148896
Author: GitHub Actions <ac...@github.com>
AuthorDate: Thu Aug 25 16:38:38 2022 +0000

    Update dist/ for commit 6953efeb0657c72fd66af8f34be66e0a3ed0e26a
---
 dist/nanoarrow.c | 17 -----------------
 dist/nanoarrow.h |  5 +----
 2 files changed, 1 insertion(+), 21 deletions(-)

diff --git a/dist/nanoarrow.c b/dist/nanoarrow.c
index 693fbf7..35f7ac3 100644
--- a/dist/nanoarrow.c
+++ b/dist/nanoarrow.c
@@ -163,11 +163,6 @@ void* ArrowRealloc(void* ptr, int64_t size) { return realloc(ptr, size); }
 
 void ArrowFree(void* ptr) { free(ptr); }
 
-static uint8_t* ArrowBufferAllocatorMallocAllocate(struct ArrowBufferAllocator* allocator,
-                                                   int64_t size) {
-  return ArrowMalloc(size);
-}
-
 static uint8_t* ArrowBufferAllocatorMallocReallocate(
     struct ArrowBufferAllocator* allocator, uint8_t* ptr, int64_t old_size,
     int64_t new_size) {
@@ -186,11 +181,6 @@ struct ArrowBufferAllocator ArrowBufferAllocatorDefault() {
   return ArrowBufferAllocatorMalloc;
 }
 
-static uint8_t* ArrowBufferAllocatorNeverAllocate(struct ArrowBufferAllocator* allocator,
-                                                  int64_t size) {
-  return NULL;
-}
-
 static uint8_t* ArrowBufferAllocatorNeverReallocate(
     struct ArrowBufferAllocator* allocator, uint8_t* ptr, int64_t old_size,
     int64_t new_size) {
@@ -1362,7 +1352,6 @@ static ArrowErrorCode ArrowMetadataGetValueInternal(const char* metadata,
   struct ArrowStringView existing_value;
   ArrowMetadataReaderInit(&reader, metadata);
 
-  int64_t size = sizeof(int32_t);
   while (ArrowMetadataReaderRead(&reader, &existing_key, &existing_value) ==
          NANOARROW_OK) {
     int key_equal = key->n_bytes == existing_key.n_bytes &&
@@ -1835,9 +1824,6 @@ static ArrowErrorCode ArrowArrayReserveInternal(struct ArrowArray* array,
 
 ArrowErrorCode ArrowArrayReserve(struct ArrowArray* array,
                                  int64_t additional_size_elements) {
-  struct ArrowArrayPrivateData* private_data =
-      (struct ArrowArrayPrivateData*)array->private_data;
-
   struct ArrowArrayView array_view;
   NANOARROW_RETURN_NOT_OK(ArrowArrayViewInitFromArray(&array_view, array));
 
@@ -1902,9 +1888,6 @@ static ArrowErrorCode ArrowArrayCheckInternalBufferSizes(
 
 ArrowErrorCode ArrowArrayFinishBuilding(struct ArrowArray* array,
                                         struct ArrowError* error) {
-  struct ArrowArrayPrivateData* private_data =
-      (struct ArrowArrayPrivateData*)array->private_data;
-
   // Make sure the value we get with array->buffers[i] is set to the actual
   // pointer (which may have changed from the original due to reallocation)
   ArrowArrayFlushInternalPointers(array);
diff --git a/dist/nanoarrow.h b/dist/nanoarrow.h
index 85dd398..daf4d6d 100644
--- a/dist/nanoarrow.h
+++ b/dist/nanoarrow.h
@@ -362,7 +362,7 @@ struct ArrowArrayView {
 #ifndef NANOARROW_BUILD_ID_H_INCLUDED
 #define NANOARROW_BUILD_ID_H_INCLUDED
 
-#define NANOARROW_BUILD_ID "gha720b663cf46ea2a251b7796cea421e9c6f04febf"
+#define NANOARROW_BUILD_ID "gha6953efeb0657c72fd66af8f34be66e0a3ed0e26a"
 
 #endif
 // Licensed to the Apache Software Foundation (ASF) under one
@@ -1660,9 +1660,6 @@ static inline ArrowErrorCode ArrowArrayStartAppending(struct ArrowArray* array)
 }
 
 static inline ArrowErrorCode ArrowArrayShrinkToFit(struct ArrowArray* array) {
-  struct ArrowArrayPrivateData* private_data =
-      (struct ArrowArrayPrivateData*)array->private_data;
-
   for (int64_t i = 0; i < 3; i++) {
     struct ArrowBuffer* buffer = ArrowArrayBuffer(array, i);
     NANOARROW_RETURN_NOT_OK(ArrowBufferResize(buffer, buffer->size_bytes, 1));