remove '_cleanup', never used

This commit is contained in:
Ward Wouts 2005-03-11 12:06:02 +00:00
parent 33c7202530
commit 51fc7c0c02

View file

@ -1,4 +1,4 @@
# $Dwarf: intspan.rb,v 1.17 2005/03/09 15:02:21 ward Exp $ # $Dwarf: intspan.rb,v 1.18 2005/03/09 18:14:56 ward Exp $
# $Source$ # $Source$
# #
@ -184,30 +184,6 @@ def _copy_run_list(runlist)
return true return true
end end
# check for overlapping runs
# delete duplicate edges
def _cleanup
edges = @set["edges"]
for i in (0..(edges.length-1))
cmp = edges[i] <=> edges[i+1];
begin
case cmp
when -1
i = i + 1
break
when 0
edges.slice!(i..(i+1))
break
when 1
return 0
end
end
end
1
end
#def splice(array, offset, length=nil, list=[]) #def splice(array, offset, length=nil, list=[])
# if offset >= 0 # if offset >= 0
# length = array.length-offset unless length # length = array.length-offset unless length
@ -930,7 +906,6 @@ end # module
# [x] _copy_array # copies an array into a set # [x] _copy_array # copies an array into a set
# [ ] _copy_set # copies one set to another # [ ] _copy_set # copies one set to another
# [ ] _copy_run_list # parses a run list # [ ] _copy_run_list # parses a run list
# [ ] _cleanup
# [x] run_list # [x] run_list
# [x] elements # [x] elements
# [x] _real_set # converts a set specification into a set # [x] _real_set # converts a set specification into a set