summaryrefslogtreecommitdiff
path: root/odb/emitter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/emitter.cxx')
-rw-r--r--odb/emitter.cxx51
1 files changed, 0 insertions, 51 deletions
diff --git a/odb/emitter.cxx b/odb/emitter.cxx
deleted file mode 100644
index 91a2569..0000000
--- a/odb/emitter.cxx
+++ /dev/null
@@ -1,51 +0,0 @@
-// file : odb/emitter.cxx
-// copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC
-// license : GNU GPL v3; see accompanying LICENSE file
-
-#include <odb/context.hxx>
-#include <odb/emitter.hxx>
-
-using namespace std;
-
-void emitter::
-pre ()
-{
-}
-
-void emitter::
-post ()
-{
-}
-
-int emitter_ostream::streambuf::
-sync ()
-{
- string s (str ());
-
- // Get rid of the trailing newline if any.
- //
- if (string::size_type n = s.size ())
- {
- if (s[n - 1] == '\n')
- s.resize (n - 1);
- }
-
- // Temporary restore output diversion.
- //
- bool r (false);
- context& ctx (context::current ());
-
- if (ctx.os.rdbuf () == this)
- {
- ctx.restore ();
- r = true;
- }
-
- e_.line (s);
-
- if (r)
- ctx.diverge (this);
-
- str (string ());
- return 0;
-}