summaryrefslogtreecommitdiffhomepage
path: root/src/error.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-06-14 13:56:30 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-06-14 13:56:30 -0700
commitf093ed69aec7a3640484bffbaa01b5e453495406 (patch)
treec13f2e81944542f9a53ff2294a1b9608a460b74e /src/error.c
parentc7b1622f40bd7625eaebde228a2c4255488c4ee9 (diff)
parent56103509c89807c7498a4f91ed715a3e684b0b31 (diff)
downloadmruby-f093ed69aec7a3640484bffbaa01b5e453495406.tar.gz
mruby-f093ed69aec7a3640484bffbaa01b5e453495406.zip
Merge pull request #282 from monaka/pr-remove-redundant-code
Remove some redundant code.
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/error.c b/src/error.c
index bb334322f..3585f1634 100644
--- a/src/error.c
+++ b/src/error.c
@@ -20,14 +20,6 @@
#define warn_printf printf
-#ifndef FALSE
-#define FALSE 0
-#endif
-
-#ifndef TRUE
-#define TRUE 1
-#endif
-
mrb_value
mrb_exc_new(mrb_state *mrb, struct RClass *c, const char *ptr, long len)
{
@@ -300,28 +292,6 @@ sysexit_status(mrb_state *mrb, mrb_value err)
return mrb_fixnum(st);
}
-void
-error_pos(void)
-{
-#if 0
- const char *sourcefile = mrb_sourcefile();
- int sourceline = mrb_sourceline();
-
- if (sourcefile) {
- if (sourceline == 0) {
- warn_printf("%s", sourcefile);
- }
- else if (mrb_frame_callee()) {
- warn_printf("%s:%d:in `%s'", sourcefile, sourceline,
- mrb_sym2name(mrb, mrb_frame_callee()));
- }
- else {
- warn_printf("%s:%d", sourcefile, sourceline);
- }
- }
-#endif
-}
-
static void
set_backtrace(mrb_state *mrb, mrb_value info, mrb_value bt)
{
@@ -428,7 +398,6 @@ mrb_init_exception(mrb_state *mrb)
// eScriptError = mrb_define_class(mrb, "ScriptError", mrb->eException_class); /* 15.2.37 */
// mrb_define_class(mrb, "SyntaxError", eScriptError); /* 15.2.38 */
// mrb_define_class(mrb, "LoadError", eScriptError); /* 15.2.39 */
- // mrb_define_class(mrb, "NotImplementedError", eScriptError_class);
// mrb_define_class(mrb, "SystemCallError", mrb->eStandardError_class); /* 15.2.36 */
mrb_define_class(mrb, "LocalJumpError", mrb->eStandardError_class); /* 15.2.25 */