summaryrefslogtreecommitdiff
path: root/src/base/cprintf.hh
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2006-12-24 14:06:56 -0800
committerNathan Binkert <binkertn@umich.edu>2006-12-24 14:06:56 -0800
commite68a87e7fa3d9e75afb4acc96c0ac7c059bdedec (patch)
tree4b38dac5f4395329b39e8e585a3dd657a644bc75 /src/base/cprintf.hh
parent91ffe811a33539e914dcd226aebb574136f5d41b (diff)
downloadgem5-e68a87e7fa3d9e75afb4acc96c0ac7c059bdedec.tar.xz
remove some output formatting stuff that we don't use
--HG-- extra : convert_revision : 367917499d3d7aebd0a91dad28c915bc85def624
Diffstat (limited to 'src/base/cprintf.hh')
-rw-r--r--src/base/cprintf.hh30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/base/cprintf.hh b/src/base/cprintf.hh
index 6b2a77f90..9967b0578 100644
--- a/src/base/cprintf.hh
+++ b/src/base/cprintf.hh
@@ -165,36 +165,6 @@ __csprintf(const std::string &format, ArgList &args)
#define csprintf(args...) \
__csprintf__(args, cp::ArgListNull())
-template<class T>
-inline ArgList &
-operator<<(ArgList &list, const T &data)
-{
- list.append(data);
- return list;
-}
-
-inline ArgList &
-operator<<(std::ostream &str, ArgList &list)
-{
- list.stream = &str;
- return list;
-}
-
-class ArgListTemp
-{
- private:
- std::string format;
- ArgList *args;
-
- public:
- ArgListTemp(const std::string &f) : format(f) { args = new ArgList; }
- ~ArgListTemp() { args->dump(format); delete args; }
-
- operator ArgList *() { return args; }
-};
-
-#define cformat(format) \
- (*((cp::ArgList *)cp::ArgListTemp(format)))
}
#endif // __CPRINTF_HH__