ext/numo/narray/step.c in numo-narray-0.9.1.2 vs ext/numo/narray/step.c in numo-narray-0.9.1.3
- old
+ new
@@ -54,26 +54,11 @@
rb_ivar_set(self, id_len, len);
rb_ivar_set(self, id_step, step);
SET_EXCL(self, excl);
}
-VALUE
-nary_step_new(
- VALUE beg,
- VALUE end,
- VALUE step,
- VALUE len,
- VALUE excl
-)
-{
- VALUE self = rb_obj_alloc(na_cStep);
-
- step_init(self, beg, end, step, len, excl);
- return self;
-}
-
-VALUE
+static VALUE
nary_step_new2(
VALUE range,
VALUE step,
VALUE len
)
@@ -451,21 +436,9 @@
{
VALUE self = rb_obj_alloc(na_cStep);
step_initialize(argc, argv, self);
return self;
}
-
-
-VALUE
-nary_is_sequence( VALUE arg )
-{
- if ( rb_obj_is_kind_of(arg, rb_cRange) )
- return Qtrue;
- if ( rb_obj_is_kind_of(arg, na_cStep) )
- return Qtrue;
- return Qfalse;
-}
-
void
Init_nary_step()
{