aboutsummaryrefslogtreecommitdiff
path: root/utility.h
diff options
context:
space:
mode:
Diffstat (limited to 'utility.h')
-rw-r--r--utility.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/utility.h b/utility.h
deleted file mode 100644
index 27ce8e9..0000000
--- a/utility.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifndef CHANGE_UTILITY_H_
-#define CHANGE_UTILITY_H_
-
-#include <ext/stdio_filebuf.h>
-
-#include <iostream>
-
-namespace utility {
-
-class Logger {
- public:
- Logger(const int target_fd):
- buffer(target_fd, std::ios::out),
- stream(&this->buffer) { }
-
- void append(const std::string& msg) {
- this->stream << msg << std::endl;
- }
-
- private:
- __gnu_cxx::stdio_filebuf<char> buffer;
- std::ostream stream;
-
-};
-
-}
-
-#endif // CHANGE_UTILITY_H_