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);