[pango/pango2: 20/301] Drop deprecated PangoScript api




commit 85f599bb84b614fff98465ccd56bb1af16083fd2
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jan 10 13:03:15 2022 -0500

    Drop deprecated PangoScript api

 pango/pango-script.c | 27 ---------------------------
 pango/pango-script.h | 11 ++++-------
 2 files changed, 4 insertions(+), 34 deletions(-)
---
diff --git a/pango/pango-script.c b/pango/pango-script.c
index 71c519fde..05c8c4be2 100644
--- a/pango/pango-script.c
+++ b/pango/pango-script.c
@@ -60,33 +60,6 @@
 #include "pango-script.h"
 #include "pango-script-private.h"
 
-/**
- * pango_script_for_unichar:
- * @ch: a Unicode character
- *
- * Looks up the script for a particular character.
- *
- * The script of a character is defined by
- * [Unicode Standard Annex 24: Script names](http://www.unicode.org/reports/tr24/).
- *
- * No check is made for @ch being a valid Unicode character; if you pass
- * in invalid character, the result is undefined.
- *
- * Note that while the return type of this function is declared
- * as `PangoScript`, as of Pango 1.18, this function simply returns
- * the return value of [func@GLib.unichar_get_script]. Callers must be
- * prepared to handle unknown values.
- *
- * Return value: the `PangoScript` for the character.
- *
- * Since: 1.4
- * Deprecated: 1.44. Use g_unichar_get_script()
- **/
-PangoScript
-pango_script_for_unichar (gunichar ch)
-{
-  return (PangoScript)g_unichar_get_script (ch);
-}
 
 /**********************************************************************/
 
diff --git a/pango/pango-script.h b/pango/pango-script.h
index e453301df..86993d586 100644
--- a/pango/pango-script.h
+++ b/pango/pango-script.h
@@ -10,7 +10,7 @@
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.         See the GNU
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * Library General Public License for more details.
  *
  * You should have received a copy of the GNU Library General Public
@@ -24,6 +24,8 @@
 
 #include <glib-object.h>
 
+#include <pango/pango-version-macros.h>
+
 G_BEGIN_DECLS
 
 /**
@@ -304,17 +306,12 @@ typedef enum {                         /* ISO 15924 code */
       PANGO_SCRIPT_SIGNWRITING             /* Sgnw */
 } PangoScript;
 
-#include <pango/pango-version-macros.h>
-
-PANGO_DEPRECATED_IN_1_44_FOR(g_unichar_get_script)
-PangoScript pango_script_for_unichar         (gunichar             ch) G_GNUC_CONST;
-
 PANGO_AVAILABLE_IN_1_44
 GType            pango_script_iter_get_type  (void) G_GNUC_CONST;
 
 PANGO_AVAILABLE_IN_1_4
 PangoScriptIter *pango_script_iter_new       (const char          *text,
-                                             int                  length);
+                                              int                  length);
 PANGO_AVAILABLE_IN_1_4
 void             pango_script_iter_get_range (PangoScriptIter     *iter,
                                               const char         **start,


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