mirror of https://github.com/kivy/kivy.git
Merge pull request #1888 from inclement/master
Revert "Added index method to InstructionGroup" I agree index is a better name, and a better implementation is probably worthwhile, but I think a method rename may as well wait until version 2 with the other breaking changes that have accrued. I guess improving the existing method can go in a different pr, I will merge this one for now.
This commit is contained in:
commit
a95b22e690
|
@ -42,7 +42,6 @@ cdef class InstructionGroup(Instruction):
|
|||
cdef void reload(self)
|
||||
cpdef add(self, Instruction c)
|
||||
cpdef insert(self, int index, Instruction c)
|
||||
cpdef index(self, Instruction c)
|
||||
cpdef remove(self, Instruction c)
|
||||
cpdef clear(self)
|
||||
cpdef remove_group(self, str groupname)
|
||||
|
|
|
@ -157,13 +157,6 @@ cdef class InstructionGroup(Instruction):
|
|||
c.rinsert(self, index)
|
||||
self.flag_update()
|
||||
|
||||
cpdef index(self, Instruction c):
|
||||
'''Get the index of the given :class:`Instruction` in our list.
|
||||
|
||||
.. versionadded:: 1.8.1
|
||||
'''
|
||||
return self.children.index(c)
|
||||
|
||||
cpdef remove(self, Instruction c):
|
||||
'''Remove an existing :class:`Instruction` from our list.
|
||||
'''
|
||||
|
|
Loading…
Reference in New Issue