From 231eac160ee394d41c84e0cc36845facb7594ba5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 11 Mar 2022 14:44:02 +1100 Subject: PyAPI: use C/RNA API for Text.from_string/to_string Use faster C code for getting the buffer from text. --- release/scripts/modules/bpy_types.py | 9 --------- 1 file changed, 9 deletions(-) (limited to 'release') diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index 54fcc8faf46..e0e20d0f8c9 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -580,15 +580,6 @@ class MeshPolygon(StructRNA): class Text(bpy_types.ID): __slots__ = () - def as_string(self): - """Return the text as a string.""" - return "\n".join(line.body for line in self.lines) - - def from_string(self, string): - """Replace text with this string.""" - self.clear() - self.write(string) - def as_module(self): import bpy from os.path import splitext, join -- cgit v1.2.3