From d6b61dff952c8a1b14629371fc76e1113936c3a0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 5 Feb 2022 13:46:48 -0600 Subject: [PATCH] [draw] Minor cleanup --- src/hb-draw.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/hb-draw.cc b/src/hb-draw.cc index 396d0b33e..ccc61027c 100644 --- a/src/hb-draw.cc +++ b/src/hb-draw.cc @@ -162,12 +162,8 @@ hb_draw_funcs_create () if (unlikely (!(funcs = hb_object_create ()))) return const_cast (&Null (hb_draw_funcs_t)); - /* XXX Clean up. Use nil object. */ - funcs->func.move_to = hb_draw_move_to_nil; - funcs->func.line_to = hb_draw_line_to_nil; - funcs->func.quadratic_to = hb_draw_quadratic_to_nil; - funcs->func.cubic_to = hb_draw_cubic_to_nil; - funcs->func.close_path = hb_draw_close_path_nil; + funcs->func = Null (hb_draw_funcs_t).func; + return funcs; }