Merge pull request #918 from monaka/pr-remove-unused-struct-and-more

Remove unused struct and more
This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-02-28 23:35:04 -08:00
5 changed files with 1 additions and 25 deletions
-8
View File
@@ -18,14 +18,6 @@
KHASH_DEFINE(mt, mrb_sym, struct RProc*, 1, kh_int_hash_func, kh_int_hash_equal)
typedef struct fc_result {
mrb_sym name;
struct RClass * klass;
mrb_value path;
struct RClass * track;
struct fc_result *prev;
} fcresult_t;
void
mrb_gc_mark_mt(mrb_state *mrb, struct RClass *c)
{
-4
View File
@@ -7,10 +7,6 @@
#ifndef MRUBY_ERROR_H
#define MRUBY_ERROR_H
struct RException {
MRB_OBJECT_HEADER;
};
void mrb_sys_fail(mrb_state *mrb, const char *mesg);
void mrb_bug_errno(const char*, int);
int sysexit_status(mrb_state *mrb, mrb_value err);
-5
View File
@@ -526,11 +526,6 @@ mrb_hash_delete(mrb_state *mrb, mrb_value self)
mrb_get_args(mrb, "o", &key);
return mrb_hash_delete_key(mrb, self, key);
}
struct shift_var {
mrb_value key;
mrb_value val;
};
/* 15.2.13.4.24 */
/*
-6
View File
@@ -26,12 +26,6 @@ typedef enum {
NOEX_RESPONDS = 0x80
} mrb_method_flag_t;
struct obj_ivar_tag {
mrb_value obj;
int (*func)(mrb_sym key, mrb_value val, void * arg);
void * arg;
};
int
mrb_obj_basic_to_s_p(mrb_state *mrb, mrb_value obj)
{
+1 -2
View File
@@ -20,8 +20,7 @@ typedef int (iv_foreach_func)(mrb_state*,mrb_sym,mrb_value,void*);
#define MRB_SEGMENT_SIZE 4
#endif
typedef struct segment
{
typedef struct segment {
mrb_sym key[MRB_SEGMENT_SIZE];
mrb_value val[MRB_SEGMENT_SIZE];
struct segment *next;