summaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-03 12:21:54 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-03 12:22:10 -0400
commit3434650848e500d605447388ef7e069ee1515b72 (patch)
treeda05e1bc5dbf5ef321d258f524518e9631dc7574 /src/utils.h
parent9bdcbffb150387d64e7eff630aaad84fb0d696b1 (diff)
downloadledger-3434650848e500d605447388ef7e069ee1515b72.tar.gz
ledger-3434650848e500d605447388ef7e069ee1515b72.tar.bz2
ledger-3434650848e500d605447388ef7e069ee1515b72.zip
Removed the binary caching code, and the XML, QIF and Gnucash parsers.
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/utils.h b/src/utils.h
index 510f8568..41142624 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -536,42 +536,6 @@ inline char peek_next_nonws(std::istream& in) {
return c;
}
-inline void xml_space(std::ostream& out, const int depth = 0) {
- for (int i = 0; i < depth; i++)
- out << " ";
-}
-
-inline void xml_print(std::ostream& out,
- const string& str,
- const int depth = 0) {
- xml_space(out, depth);
- out << str;
-}
-
-struct xml_str
-{
- const string& str;
- const std::size_t depth;
-
- xml_str(const string& _str, const std::size_t _depth)
- : str(_str), depth(_depth) {
- TRACE_CTOR(xml_str, "const string&, const std::size_t");
- }
- xml_str(const xml_str& other)
- : str(other.str), depth(other.depth) {
- TRACE_CTOR(xml_str, "copy");
- }
- ~xml_str() throw() {
- TRACE_DTOR(xml_str);
- }
-};
-
-inline std::ostream& operator<<(std::ostream& out, const xml_str& obj) {
- xml_space(out, obj.depth);
- out << obj.str;
- return out;
-}
-
#define READ_INTO(str, targ, size, var, cond) { \
char * _p = targ; \
var = str.peek(); \