about summary refs log tree commit diff
path: root/third_party/nix/src/libexpr/symbol-table.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/libexpr/symbol-table.cc')
-rw-r--r--third_party/nix/src/libexpr/symbol-table.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/third_party/nix/src/libexpr/symbol-table.cc b/third_party/nix/src/libexpr/symbol-table.cc
deleted file mode 100644
index 2b27ca54c289..000000000000
--- a/third_party/nix/src/libexpr/symbol-table.cc
+++ /dev/null
@@ -1,24 +0,0 @@
-#include "libexpr/symbol-table.hh"
-
-#include <absl/container/node_hash_set.h>
-#include <absl/strings/string_view.h>
-
-namespace nix {
-
-Symbol SymbolTable::Create(absl::string_view sym) {
-  auto it = symbols_.emplace(sym);
-  const std::string* ptr = &(*it.first);
-  return Symbol(ptr);
-}
-
-size_t SymbolTable::Size() const { return symbols_.size(); }
-
-size_t SymbolTable::TotalSize() const {
-  size_t n = 0;
-  for (auto& i : symbols_) {
-    n += i.size();
-  }
-  return n;
-}
-
-}  // namespace nix