aboutsummaryrefslogtreecommitdiff
path: root/frontend/Exception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/Exception.cpp')
-rw-r--r--frontend/Exception.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/frontend/Exception.cpp b/frontend/Exception.cpp
deleted file mode 100644
index c852f0a..0000000
--- a/frontend/Exception.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <cstdarg>
-#include <cstdio>
-#include <cstdlib>
-#include <cstring>
-
-#include "backend/String.h"
-
-#include "Exception.h"
-
-using namespace std;
-
-const char * Exception::what() {
- return this->error.get();
-}
-
-Exception::Exception(const char * fmt, ...) {
- va_list args;
- va_start(args, fmt);
- this->error = unique_ptr<char>(strdup(String::va_fmt(args, fmt).c_str()));
- va_end(args);
-}
-