summaryrefslogtreecommitdiffstats
path: root/lldb/source/Utility/TildeExpressionResolver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Utility/TildeExpressionResolver.cpp')
-rw-r--r--lldb/source/Utility/TildeExpressionResolver.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/lldb/source/Utility/TildeExpressionResolver.cpp b/lldb/source/Utility/TildeExpressionResolver.cpp
index 2ad0c4e119d..c7be68dbbb9 100644
--- a/lldb/source/Utility/TildeExpressionResolver.cpp
+++ b/lldb/source/Utility/TildeExpressionResolver.cpp
@@ -68,22 +68,3 @@ bool StandardTildeExpressionResolver::ResolvePartial(StringRef Expr,
return true;
#endif
}
-
-bool TildeExpressionResolver::ResolveFullPath(
- StringRef Expr, llvm::SmallVectorImpl<char> &Output) {
- Output.clear();
- if (!Expr.startswith("~")) {
- Output.append(Expr.begin(), Expr.end());
- return false;
- }
-
- namespace path = llvm::sys::path;
- StringRef Left =
- Expr.take_until([](char c) { return path::is_separator(c); });
-
- if (!ResolveExact(Left, Output))
- return false;
-
- Output.append(Expr.begin() + Left.size(), Expr.end());
- return true;
-}
OpenPOWER on IntegriCloud