aboutsummaryrefslogtreecommitdiff
path: root/build/context.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/context.cxx')
-rw-r--r--build/context.cxx20
1 files changed, 1 insertions, 19 deletions
diff --git a/build/context.cxx b/build/context.cxx
index 4d1d1e4..79753ec 100644
--- a/build/context.cxx
+++ b/build/context.cxx
@@ -35,7 +35,7 @@ namespace build
}
path
- translate (const path& p)
+ relative_work (const path& p)
{
if (p.sub (work))
return p.leaf (work);
@@ -49,22 +49,4 @@ namespace build
return p;
}
-
- std::string
- diagnostic_string (const path& p)
- {
- if (p.absolute ())
- {
- path rp (translate (p));
-
-#ifndef _WIN32
- if (rp.absolute () && rp.sub (home))
- return "~/" + rp.leaf (home).string ();
-#endif
-
- return rp.string ();
- }
-
- return p.string ();
- }
}