From 706d65f5e7c9d4b1a55d334a0388020f313df1d1 Mon Sep 17 00:00:00 2001 From: candiduslynx Date: Fri, 2 Jun 2023 19:14:47 +0300 Subject: [PATCH] remove extra def (use `arrow.ListLikeType`) --- go/arrow/ipc/file_reader.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/go/arrow/ipc/file_reader.go b/go/arrow/ipc/file_reader.go index 658d79d330684..a561352960a66 100644 --- a/go/arrow/ipc/file_reader.go +++ b/go/arrow/ipc/file_reader.go @@ -595,12 +595,7 @@ func (ctx *arrayLoaderContext) loadMap(dt *arrow.MapType) arrow.ArrayData { return array.NewData(dt, int(field.Length()), buffers, []arrow.ArrayData{sub}, int(field.NullCount()), 0) } -type listLike interface { - arrow.DataType - Elem() arrow.DataType -} - -func (ctx *arrayLoaderContext) loadList(dt listLike) arrow.ArrayData { +func (ctx *arrayLoaderContext) loadList(dt arrow.ListLikeType) arrow.ArrayData { field, buffers := ctx.loadCommon(dt.ID(), 2) buffers = append(buffers, ctx.buffer()) defer releaseBuffers(buffers)