[pango/pango2: 47/195] Drop deprecated break api




commit 65602703a9ff8bf3a4b27fa671160506fa8f83ee
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jan 10 10:39:00 2022 -0500

    Drop deprecated break api

 pango/break.c       | 30 ------------------------------
 pango/pango-break.h |  7 -------
 2 files changed, 37 deletions(-)
---
diff --git a/pango/break.c b/pango/break.c
index 05ec97c9..3b4b1b0d 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -2192,36 +2192,6 @@ pango_default_break (const char    *text,
   attrs->is_cursor_position |= before.is_cursor_position;
 }
 
-/**
- * pango_break:
- * @text: the text to process. Must be valid UTF-8
- * @length: length of @text in bytes (may be -1 if @text is nul-terminated)
- * @analysis: `PangoAnalysis` structure for @text
- * @attrs: (array length=attrs_len): an array to store character information in
- * @attrs_len: size of the array passed as @attrs
- *
- * Determines possible line, word, and character breaks
- * for a string of Unicode text with a single analysis.
- *
- * For most purposes you may want to use [func@Pango.get_log_attrs].
- *
- * Deprecated: 1.44: Use [func@Pango.default_break],
- *   [func@Pango.tailor_break] and [func@Pango.attr_break].
- */
-void
-pango_break (const char    *text,
-             gint           length,
-             PangoAnalysis *analysis,
-             PangoLogAttr  *attrs,
-             int            attrs_len)
-{
-  g_return_if_fail (analysis != NULL);
-  g_return_if_fail (attrs != NULL);
-
-  default_break (text, length, analysis, attrs, attrs_len);
-  tailor_break (text, length, analysis, -1, attrs, attrs_len);
-}
-
 /**
  * pango_tailor_break:
  * @text: text to process. Must be valid UTF-8
diff --git a/pango/pango-break.h b/pango/pango-break.h
index 797fefd1..021af0d4 100644
--- a/pango/pango-break.h
+++ b/pango/pango-break.h
@@ -101,13 +101,6 @@ struct _PangoLogAttr
   guint reserved                    : 17;
 };
 
-PANGO_DEPRECATED_IN_1_44
-void                    pango_break             (const char    *text,
-                                                 int            length,
-                                                 PangoAnalysis *analysis,
-                                                 PangoLogAttr  *attrs,
-                                                 int            attrs_len);
-
 PANGO_AVAILABLE_IN_ALL
 void                    pango_get_log_attrs     (const char    *text,
                                                  int            length,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]