From 70254e7aa1262b60c2de6e2dccf092b69712c83e Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Fri, 6 Jun 2014 09:40:01 -0400 Subject: [PATCH] Remove error.h It's not used by anything anymore. Signed-off-by: Anna Schumaker --- DESIGN | 13 ------------- core/file.cpp | 2 -- include/core/error.h | 13 ------------- 3 files changed, 28 deletions(-) delete mode 100644 include/core/error.h diff --git a/DESIGN b/DESIGN index 2aba3337..b503a520 100644 --- a/DESIGN +++ b/DESIGN @@ -33,19 +33,6 @@ API: -Errors: - This file contains an enum defining error codes used throughout the - codebase. Errors will be reported using "throw" and "catch". - -Error Codes: - enum error_t { - E_AUDIO = 1, /* Audio error */ - E_EXIST, /* Requested object does not exist */ - E_INVAL, /* Invalid operation requested */ - }; - - - Printing: Sometimes text needs to be printed to the screen so users (or debuggers) can trace what is going on. diff --git a/core/file.cpp b/core/file.cpp index e790934a..53bd4ab3 100644 --- a/core/file.cpp +++ b/core/file.cpp @@ -1,9 +1,7 @@ /* * Copyright 2013 (c) Anna Schumaker. */ -#include #include - #include #ifdef CONFIG_TEST diff --git a/include/core/error.h b/include/core/error.h deleted file mode 100644 index 0190812d..00000000 --- a/include/core/error.h +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright 2013 (c) Anna Schumaker. - */ -#ifndef OCARINA_ERROR_H -#define OCARINA_ERROR_H - -enum o_error { - E_AUDIO = 1, /* Audio error */ - E_EXIST, /* Requested object does not exist */ - E_INVAL, /* Invalid operation requested */ -}; - -#endif /* OCARINA_ERROR_H */