Bindings: Remove 'wrapNilProperty'
It's completely useless lol.
This commit is contained in:
parent
f8c26fc515
commit
0131ed09f0
|
@ -160,12 +160,6 @@ wrapProperty(VALUE self, void *prop, const char *iv,
|
||||||
return propObj;
|
return propObj;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void
|
|
||||||
wrapNilProperty(VALUE self, const char *iv)
|
|
||||||
{
|
|
||||||
rb_iv_set(self, iv, Qnil);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Implemented: oSszfibn| */
|
/* Implemented: oSszfibn| */
|
||||||
int
|
int
|
||||||
rb_get_args(int argc, VALUE *argv, const char *format, ...);
|
rb_get_args(int argc, VALUE *argv, const char *format, ...);
|
||||||
|
|
|
@ -35,7 +35,6 @@ RB_METHOD(planeInitialize)
|
||||||
|
|
||||||
p->initDynAttribs();
|
p->initDynAttribs();
|
||||||
|
|
||||||
wrapNilProperty(self, "bitmap");
|
|
||||||
wrapProperty(self, p->getColor(), "color", ColorType);
|
wrapProperty(self, p->getColor(), "color", ColorType);
|
||||||
wrapProperty(self, p->getTone(), "tone", ToneType);
|
wrapProperty(self, p->getTone(), "tone", ToneType);
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,6 @@ RB_METHOD(spriteInitialize)
|
||||||
/* Wrap property objects */
|
/* Wrap property objects */
|
||||||
s->initDynAttribs();
|
s->initDynAttribs();
|
||||||
|
|
||||||
wrapNilProperty(self, "bitmap");
|
|
||||||
wrapProperty(self, s->getSrcRect(), "src_rect", RectType);
|
wrapProperty(self, s->getSrcRect(), "src_rect", RectType);
|
||||||
wrapProperty(self, s->getColor(), "color", ColorType);
|
wrapProperty(self, s->getColor(), "color", ColorType);
|
||||||
wrapProperty(self, s->getTone(), "tone", ToneType);
|
wrapProperty(self, s->getTone(), "tone", ToneType);
|
||||||
|
|
|
@ -34,8 +34,6 @@ RB_METHOD(windowInitialize)
|
||||||
|
|
||||||
w->initDynAttribs();
|
w->initDynAttribs();
|
||||||
|
|
||||||
wrapNilProperty(self, "windowskin");
|
|
||||||
wrapNilProperty(self, "contents");
|
|
||||||
wrapProperty(self, w->getCursorRect(), "cursor_rect", RectType);
|
wrapProperty(self, w->getCursorRect(), "cursor_rect", RectType);
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
|
|
|
@ -53,7 +53,6 @@ RB_METHOD(windowVXInitialize)
|
||||||
|
|
||||||
w->initDynAttribs();
|
w->initDynAttribs();
|
||||||
|
|
||||||
wrapNilProperty(self, "windowskin");
|
|
||||||
wrapProperty(self, w->getTone(), "tone", ToneType);
|
wrapProperty(self, w->getTone(), "tone", ToneType);
|
||||||
wrapProperty(self, w->getCursorRect(), "cursor_rect", RectType);
|
wrapProperty(self, w->getCursorRect(), "cursor_rect", RectType);
|
||||||
|
|
||||||
|
|
|
@ -312,15 +312,6 @@ wrapProperty(mrb_state *mrb, mrb_value self,
|
||||||
propObj);
|
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
|
inline mrb_value
|
||||||
getProperty(mrb_state *mrb, mrb_value self, CommonSymbol iv)
|
getProperty(mrb_state *mrb, mrb_value self, CommonSymbol iv)
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,7 +36,6 @@ MRB_METHOD(planeInitialize)
|
||||||
p->setColor(new Color);
|
p->setColor(new Color);
|
||||||
p->setTone(new Tone);
|
p->setTone(new Tone);
|
||||||
|
|
||||||
wrapNilProperty(mrb, self, CSbitmap);
|
|
||||||
wrapProperty(mrb, self, p->getColor(), CScolor, ColorType);
|
wrapProperty(mrb, self, p->getColor(), CScolor, ColorType);
|
||||||
wrapProperty(mrb, self, p->getTone(), CStone, ToneType);
|
wrapProperty(mrb, self, p->getTone(), CStone, ToneType);
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,6 @@ MRB_METHOD(spriteInitialize)
|
||||||
s->setColor(new Color);
|
s->setColor(new Color);
|
||||||
s->setTone(new Tone);
|
s->setTone(new Tone);
|
||||||
|
|
||||||
wrapNilProperty(mrb, self, CSbitmap);
|
|
||||||
wrapProperty(mrb, self, s->getSrcRect(), CSsrc_rect, RectType);
|
wrapProperty(mrb, self, s->getSrcRect(), CSsrc_rect, RectType);
|
||||||
wrapProperty(mrb, self, s->getColor(), CScolor, ColorType);
|
wrapProperty(mrb, self, s->getColor(), CScolor, ColorType);
|
||||||
wrapProperty(mrb, self, s->getTone(), CStone, ToneType);
|
wrapProperty(mrb, self, s->getTone(), CStone, ToneType);
|
||||||
|
|
|
@ -33,8 +33,6 @@ MRB_METHOD(windowInitialize)
|
||||||
setPrivateData(self, w, WindowType);
|
setPrivateData(self, w, WindowType);
|
||||||
|
|
||||||
w->setCursorRect(new Rect);
|
w->setCursorRect(new Rect);
|
||||||
wrapNilProperty(mrb, self, CSwindowskin);
|
|
||||||
wrapNilProperty(mrb, self, CScontents);
|
|
||||||
wrapProperty(mrb, self, w->getCursorRect(), CScursor_rect, RectType);
|
wrapProperty(mrb, self, w->getCursorRect(), CScursor_rect, RectType);
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
|
|
Loading…
Reference in New Issue