about summary refs log tree commit diff
path: root/third_party/nix/src/libutil/status.hh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/libutil/status.hh')
-rw-r--r--third_party/nix/src/libutil/status.hh17
1 files changed, 0 insertions, 17 deletions
diff --git a/third_party/nix/src/libutil/status.hh b/third_party/nix/src/libutil/status.hh
deleted file mode 100644
index aeee0f502257..000000000000
--- a/third_party/nix/src/libutil/status.hh
+++ /dev/null
@@ -1,17 +0,0 @@
-#pragma once
-
-#include <absl/status/status.h>
-#include <absl/strings/str_format.h>
-#include <absl/strings/string_view.h>
-
-#include "libutil/types.hh"
-
-namespace nix::util {
-
-inline void OkOrThrow(absl::Status status) {
-  if (!status.ok()) {
-    throw Error(absl::StrFormat("Operation failed: %s", status.ToString()));
-  }
-}
-
-}  // namespace nix::util