Bindings: Remove 'wrapNilProperty'

It's completely useless lol.
This commit is contained in:
Jonas Kulla 2014-09-05 01:52:12 +02:00
parent f8c26fc515
commit 0131ed09f0
9 changed files with 0 additions and 24 deletions

View File

@ -160,12 +160,6 @@ wrapProperty(VALUE self, void *prop, const char *iv,
return propObj;
}
inline void
wrapNilProperty(VALUE self, const char *iv)
{
rb_iv_set(self, iv, Qnil);
}
/* Implemented: oSszfibn| */
int
rb_get_args(int argc, VALUE *argv, const char *format, ...);

View File

@ -35,7 +35,6 @@ RB_METHOD(planeInitialize)
p->initDynAttribs();
wrapNilProperty(self, "bitmap");
wrapProperty(self, p->getColor(), "color", ColorType);
wrapProperty(self, p->getTone(), "tone", ToneType);

View File

@ -39,7 +39,6 @@ RB_METHOD(spriteInitialize)
/* Wrap property objects */
s->initDynAttribs();
wrapNilProperty(self, "bitmap");
wrapProperty(self, s->getSrcRect(), "src_rect", RectType);
wrapProperty(self, s->getColor(), "color", ColorType);
wrapProperty(self, s->getTone(), "tone", ToneType);

View File

@ -34,8 +34,6 @@ RB_METHOD(windowInitialize)
w->initDynAttribs();
wrapNilProperty(self, "windowskin");
wrapNilProperty(self, "contents");
wrapProperty(self, w->getCursorRect(), "cursor_rect", RectType);
return self;

View File

@ -53,7 +53,6 @@ RB_METHOD(windowVXInitialize)
w->initDynAttribs();
wrapNilProperty(self, "windowskin");
wrapProperty(self, w->getTone(), "tone", ToneType);
wrapProperty(self, w->getCursorRect(), "cursor_rect", RectType);

View File

@ -312,15 +312,6 @@ wrapProperty(mrb_state *mrb, mrb_value self,
propObj);
}
inline void
wrapNilProperty(mrb_state *mrb, mrb_value self, CommonSymbol iv)
{
mrb_obj_iv_set(mrb,
mrb_obj_ptr(self),
getSym(mrb, iv),
mrb_nil_value());
}
inline mrb_value
getProperty(mrb_state *mrb, mrb_value self, CommonSymbol iv)
{

View File

@ -36,7 +36,6 @@ MRB_METHOD(planeInitialize)
p->setColor(new Color);
p->setTone(new Tone);
wrapNilProperty(mrb, self, CSbitmap);
wrapProperty(mrb, self, p->getColor(), CScolor, ColorType);
wrapProperty(mrb, self, p->getTone(), CStone, ToneType);

View File

@ -39,7 +39,6 @@ MRB_METHOD(spriteInitialize)
s->setColor(new Color);
s->setTone(new Tone);
wrapNilProperty(mrb, self, CSbitmap);
wrapProperty(mrb, self, s->getSrcRect(), CSsrc_rect, RectType);
wrapProperty(mrb, self, s->getColor(), CScolor, ColorType);
wrapProperty(mrb, self, s->getTone(), CStone, ToneType);

View File

@ -33,8 +33,6 @@ MRB_METHOD(windowInitialize)
setPrivateData(self, w, WindowType);
w->setCursorRect(new Rect);
wrapNilProperty(mrb, self, CSwindowskin);
wrapNilProperty(mrb, self, CScontents);
wrapProperty(mrb, self, w->getCursorRect(), CScursor_rect, RectType);
return self;