Skip to content

Commit

Permalink
Remove stale code in ColumnBase._fill (#9078)
Browse files Browse the repository at this point in the history
This PR removes unreachable code in `ColumnBase._fill`.
closes #8566

Authors:
  - Michael Wang (https://github.com/isVoid)

Approvers:
  - GALI PREM SAGAR (https://github.com/galipremsagar)

URL: #9078
  • Loading branch information
isVoid authored Aug 20, 2021
1 parent 3ea4b42 commit ca58c1e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions python/cudf/cudf/core/column/column.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,14 +392,6 @@ def _fill(

return self

fill_code = self._encode(fill_value)
fill_scalar = as_device_scalar(fill_code, self.codes.dtype)

result = self if inplace else self.copy()

libcudf.filling.fill_in_place(result.codes, begin, end, fill_scalar)
return result

def shift(self, offset: int, fill_value: ScalarLike) -> ColumnBase:
return libcudf.copying.shift(self, offset, fill_value)

Expand Down

0 comments on commit ca58c1e

Please sign in to comment.