Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-02-24 05:13:06 +0300
committerCampbell Barton <campbell@blender.org>2022-02-24 05:14:33 +0300
commitb45a3e8747018a173afba8ca0d25c898fb6e62bc (patch)
tree7318fc7d10f44037fbae210fec0a45e70922a95e /source
parent24450fa14213d7d2b68962e178cbbcbe1ae829e7 (diff)
Cleanup: remove dead code in vfont_to_curve
Also replaces numbers with character literals for tab/space.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/vfont.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/source/blender/blenkernel/intern/vfont.c b/source/blender/blenkernel/intern/vfont.c
index 3af09f22fa9..40d3b5cf062 100644
--- a/source/blender/blenkernel/intern/vfont.c
+++ b/source/blender/blenkernel/intern/vfont.c
@@ -1072,22 +1072,12 @@ static bool vfont_to_curve(Object *ob,
current_line_length = 0.0f;
}
- /* XXX(campbell): has been unused for years, need to check if this is useful, r4613 r5282. */
-#if 0
- if (ascii == '\n') {
- xof = xof_scale;
- }
- else {
- xof = MARGIN_X_MIN;
- }
-#else
xof = MARGIN_X_MIN;
-#endif
lnr++;
cnr = 0;
wsnr = 0;
}
- else if (ascii == 9) { /* TAB */
+ else if (ascii == '\t') { /* Tab character. */
float tabfac;
ct->xof = xof;
@@ -1115,7 +1105,7 @@ static bool vfont_to_curve(Object *ob,
sb->w = xof * font_size;
}
- if (ascii == 32) {
+ if (ascii == ' ') { /* Space character. */
wsfac = cu->wordspace;
wsnr++;
}