From 06d7b4aebd9e4a1a87f77fe59a8c08392318be5d Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 24 May 2020 01:36:11 +0100 Subject: refactor(3p/nix/libutil): Replace chomp() with absl::strings --- third_party/nix/src/libutil/util.cc | 5 ----- 1 file changed, 5 deletions(-) (limited to 'third_party/nix/src/libutil/util.cc') diff --git a/third_party/nix/src/libutil/util.cc b/third_party/nix/src/libutil/util.cc index 6076bdc3934b..53d037cf5801 100644 --- a/third_party/nix/src/libutil/util.cc +++ b/third_party/nix/src/libutil/util.cc @@ -1210,11 +1210,6 @@ string concatStringsSep(const string& sep, const StringSet& ss) { return s; } -string chomp(const string& s) { - size_t i = s.find_last_not_of(" \n\r\t"); - return i == string::npos ? "" : string(s, 0, i + 1); -} - string trim(const string& s, const string& whitespace) { auto i = s.find_first_not_of(whitespace); if (i == string::npos) { -- cgit 1.4.1