diff --git a/third_party/xla/xla/BUILD b/third_party/xla/xla/BUILD index a6d338ebe3a959..40a93d6b9f6996 100644 --- a/third_party/xla/xla/BUILD +++ b/third_party/xla/xla/BUILD @@ -277,22 +277,6 @@ cc_library( ], ) -cc_library( - name = "statusor", - hdrs = [ - "statusor.h", - ], - linkopts = select({ - "//xla/tsl:freebsd": ["-lexecinfo"], - "//conditions:default": [], - }), - visibility = ["//visibility:public"], - deps = [ - "@com_google_absl//absl/status", - "@local_tsl//tsl/platform:statusor", - ], -) - cc_library( name = "fp_util", hdrs = ["fp_util.h"], diff --git a/third_party/xla/xla/statusor.h b/third_party/xla/xla/statusor.h deleted file mode 100644 index 3a7d6da42897f7..00000000000000 --- a/third_party/xla/xla/statusor.h +++ /dev/null @@ -1,27 +0,0 @@ -/* Copyright 2017 The OpenXLA Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -==============================================================================*/ -#ifndef XLA_STATUSOR_H_ -#define XLA_STATUSOR_H_ - -#include "tsl/platform/statusor.h" - -namespace xla { - -// Use steam_executor's absl::StatusOr so we don't duplicate code. -using tsl::StatusOr; // TENSORFLOW_STATUS_OK - -} // namespace xla - -#endif // XLA_STATUSOR_H_