1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

removed some unused codes, and uniformed code format

This commit is contained in:
ser1zw 2011-08-12 03:04:22 +09:00
parent 42c6f5cc37
commit 14659f0f90
39 changed files with 119 additions and 172 deletions

View file

@ -493,13 +493,13 @@ rb_shift(VALUE self)
/*
* call-seq:
* each{|obj| ... } -> self
* each {|obj| ... } -> self
*
* Calls block once for each sequence-block in <i>self</i>,
* passing that sequence-block as a parameter.
* seq = CvSeq.new(CvIndex)
* seq.push(5, 6, 7)
* seq.each{|x| print x, " -- " }
* seq.each {|x| print x, " -- " }
* produces:
* 5 -- 6 -- 7 --
*/
@ -526,7 +526,7 @@ rb_each(VALUE self)
/*
* call-seq:
* each_index{|index| ... } -> self
* each_index {|index| ... } -> self
*
* Same as CvSeq#each, but passes the index of the element instead of the element itself.
*/
@ -595,15 +595,5 @@ new_sequence(VALUE klass, CvSeq *seq, VALUE element_klass, VALUE storage)
return Data_Wrap_Struct(klass, mark_root_object, unregister_elem_class, seq);
}
VALUE
auto_extend(VALUE object)
{
CvSeq *seq = CVSEQ(object);
if (CV_IS_SEQ_POINT_SET(seq)) {
rb_extend_object(object, mPointSet::rb_module());
}
return object;
}
__NAMESPACE_END_CVSEQ
__NAMESPACE_END_OPENCV