Skip to content

Commit

Permalink
Eliminado funcion innecesaria
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Dec 19, 2018
1 parent 377380c commit 3def397
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions lib/array.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
class Array


def sort_for
orden=[]
orden.push(self[0])

for i in (1..length - 1)
a = self[i]
for j in (0..i)
Expand All @@ -18,7 +16,6 @@ def sort_for
end
end
end

return orden
end

Expand All @@ -30,15 +27,13 @@ def sort_each
a = x
i1 = i
j = i1+1

@temp[j..@temp.length-1].each do |y|
if (a > y)
a = y
i1 = j
end
j+=1
end

@temp[i1] = x
@temp[i]=a
i+=1
Expand Down
10 changes: 0 additions & 10 deletions lib/lista.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,4 @@ def clasf_peso
return lista
end

def clasf_et
lista=[]
current_node=@head

while(!current_node.nil?)
lista.append(current_node.calcularkcal)
current_node=current_node.next
end
return lista
end
end

0 comments on commit 3def397

Please sign in to comment.