Cleanup: remove unused Curve::lines & disabled RNA definition

This commit is contained in:
Campbell Barton
2025-08-25 06:20:07 +00:00
parent fdcbb0c99b
commit 352575d620
3 changed files with 1 additions and 19 deletions

View File

@@ -1019,15 +1019,6 @@ static bool vfont_to_curve(Object *ob,
current_line_length += xof + twidth - MARGIN_X_MIN;
longest_line_length = std::max(current_line_length, longest_line_length);
cu->lines = 1;
for (i = 0; i <= slen; i++) {
const char32_t charcode = mem[i];
ct = &chartransdata[i];
if (charcode == '\n' || ct->dobreak) {
cu->lines++;
}
}
if (ef && selboxes) {
/* Set combined style flags for the selected string. Start with all styles then
* remove one if ANY characters do not have it. Break out if we've removed them all. */

View File

@@ -265,10 +265,9 @@ typedef struct Curve {
* specified. The effective radius is a function of the bevel point radius and the taper radius.
*/
char taper_radius_mode;
char _pad;
char _pad[3];
/* font part */
short lines;
float spacing, linedist, shear, fsize, wordspace, ulpos, ulheight;
float xof, yof;
float linewidth;

View File

@@ -1408,14 +1408,6 @@ static void rna_def_charinfo(BlenderRNA *brna)
RNA_def_property_ui_icon(prop, ICON_UNDERLINE, 0);
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
/* probably there is no reason to expose this */
# if 0
prop = RNA_def_property(srna, "use_wrap", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, nullptr, "flag", CU_CHINFO_WRAP);
RNA_def_property_ui_text(prop, "Wrap", "");
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
# endif
prop = RNA_def_property(srna, "use_small_caps", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, nullptr, "flag", CU_CHINFO_SMALLCAPS);
RNA_def_property_ui_text(prop, "Small Caps", "");