From b17ad615a13d4610ae1cf29144145e8793c1796c Mon Sep 17 00:00:00 2001 From: jbrockmendel Date: Mon, 2 Mar 2020 19:20:05 -0800 Subject: [PATCH] CLN: remove unreachable branch --- pandas/core/indexes/base.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index ceb3f26a0526a..00e662fae4991 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -32,7 +32,6 @@ is_categorical, is_categorical_dtype, is_datetime64_any_dtype, - is_datetime64tz_dtype, is_dtype_equal, is_extension_array_dtype, is_float, @@ -2525,14 +2524,8 @@ def _union(self, other, sort): return other._get_reconciled_name_object(self) # TODO(EA): setops-refactor, clean all this up - if is_datetime64tz_dtype(self): - lvals = self._ndarray_values - else: - lvals = self._values - if is_datetime64tz_dtype(other): - rvals = other._ndarray_values - else: - rvals = other._values + lvals = self._values + rvals = other._values if sort is None and self.is_monotonic and other.is_monotonic: try: