aboutsummaryrefslogtreecommitdiff
path: root/build/path-io.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/path-io.cxx')
-rw-r--r--build/path-io.cxx39
1 files changed, 0 insertions, 39 deletions
diff --git a/build/path-io.cxx b/build/path-io.cxx
deleted file mode 100644
index b6fd9e7..0000000
--- a/build/path-io.cxx
+++ /dev/null
@@ -1,39 +0,0 @@
-// file : build/path-io.cxx -*- C++ -*-
-// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
-// license : MIT; see accompanying LICENSE file
-
-#include <build/path-io>
-
-#include <ostream>
-
-#include <build/context>
-#include <build/diagnostics>
-
-using namespace std;
-
-namespace build
-{
- ostream&
- operator<< (ostream& os, const path& p)
- {
- return os << (relative (os) ? diag_relative (p) : p.string ());
- }
-
- ostream&
- operator<< (ostream& os, const dir_path& d)
- {
- if (relative (os))
- os << diag_relative (d);
- else
- {
- const string& s (d.string ());
-
- // Print the directory with trailing '/'.
- //
- if (!s.empty ())
- os << s << (dir_path::traits::is_separator (s.back ()) ? "" : "/");
- }
-
- return os;
- }
-}