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:
Alexander Taylor 2014-02-26 18:30:14 +00:00
commit a95b22e690
2 changed files with 0 additions and 8 deletions

View File

@ -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)

View File

@ -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.
'''