From cc663b6c883b4ef0bf1d92fbee39e48c228109d2 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Thu, 13 Feb 2014 21:37:50 +0000 Subject: [PATCH] Revert "Added index method to InstructionGroup" This reverts commit cc9af2bb191338f31225c192df9739a28e29f197. This commit only duplicates the functionality of InstructionGroup.indexof. --- kivy/graphics/instructions.pxd | 1 - kivy/graphics/instructions.pyx | 7 ------- 2 files changed, 8 deletions(-) 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. '''