diff --git a/kivy/graphics/instructions.pxd b/kivy/graphics/instructions.pxd index 1cc09f34b..72e206302 100644 --- a/kivy/graphics/instructions.pxd +++ b/kivy/graphics/instructions.pxd @@ -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) diff --git a/kivy/graphics/instructions.pyx b/kivy/graphics/instructions.pyx index 760f2da7b..d139800f0 100644 --- a/kivy/graphics/instructions.pyx +++ b/kivy/graphics/instructions.pyx @@ -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. '''