Skip to content

Commit

Permalink
Remove pass_by_value property
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeleobas committed Dec 14, 2022
1 parent ba48cb3 commit 34b28f1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
8 changes: 0 additions & 8 deletions rbc/heavydb/buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@
class HeavyDBBufferType(typesystem.Type):
"""Typesystem type class for HeavyDB buffer structures.
"""
# When True, buffer type arguments are passed by value to
# functions [not recommended].
@property
def pass_by_value(self):
return False

@property
def numba_pointer_type(self):
return BufferPointer
Expand Down Expand Up @@ -81,8 +75,6 @@ def tonumba(self, bool_is_int8=None):
buffer_type._params['NumbaType'] = BufferType
buffer_type._params['NumbaPointerType'] = self.numba_pointer_type
numba_type = buffer_type.tonumba(bool_is_int8=True)
if self.pass_by_value:
return numba_type
return self.numba_pointer_type(numba_type)


Expand Down
5 changes: 0 additions & 5 deletions rbc/heavydb/column.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
class HeavyDBColumnType(HeavyDBBufferType):
"""Heavydb Column type for RBC typesystem.
"""
@property
def pass_by_value(self):
heavydb_version = TargetInfo().software[1][:3]
return heavydb_version <= (5, 7, 0)

def match(self, other):
if type(self) is type(other):
return self[0] == other[0]
Expand Down

0 comments on commit 34b28f1

Please sign in to comment.