From c84acc0023ad24f28ebbbc1ef296ee3caaa1e4b9 Mon Sep 17 00:00:00 2001 From: Michael W <50232075+YishiMichael@users.noreply.github.com> Date: Sat, 27 Nov 2021 19:53:52 +0800 Subject: [PATCH] Remove disabled methods --- manimlib/mobject/svg/mtex_mobject.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/manimlib/mobject/svg/mtex_mobject.py b/manimlib/mobject/svg/mtex_mobject.py index 3b9f51f2..3973b30a 100644 --- a/manimlib/mobject/svg/mtex_mobject.py +++ b/manimlib/mobject/svg/mtex_mobject.py @@ -1,7 +1,6 @@ import itertools as it import re -from manimlib.constants import * from manimlib.mobject.svg.svg_mobject import SVGMobject from manimlib.mobject.types.vectorized_mobject import VMobject from manimlib.mobject.types.vectorized_mobject import VGroup @@ -317,29 +316,6 @@ class MTex(VMobject): self.set_color_by_tex(tex, color) return self - def index_of_part(self, submob, start=0): - return self.submobjects.index(submob, start) - - def index_of_part_by_tex(self, tex, start=0): - part = self.get_part_by_tex(tex) - return self.index_of_part(part, start) - - def slice_by_tex(self, start_tex=None, stop_tex=None): - if start_tex is None: - start_index = 0 - else: - start_index = self.index_of_part_by_tex(start_tex) - - if stop_tex is None: - return self[start_index:] - else: - stop_index = self.index_of_part_by_tex(stop_tex, start=start_index) - return self[start_index:stop_index] - - def set_bstroke(self, color=BLACK, width=4): - self.set_stroke(color, width, background=True) - return self - class MTexText(MTex): CONFIG = {