[pangomm] Coverage: Remove max(), to_bytes() and one create()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pangomm] Coverage: Remove max(), to_bytes() and one create()
- Date: Mon, 22 Jul 2019 09:06:38 +0000 (UTC)
commit 2e4ced2ab04fbb3a9976b9065dea10007426a5ff
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Mon Jul 22 10:51:59 2019 +0200
Coverage: Remove max(), to_bytes() and one create()
* pango/src/coverage.[ccg|hg]: pango_coverage_from_bytes(),
pango_coverage_to_bytes() and pango_coverage_max() are deprecated in
pango 1.43. Remove them in pangomm.
* pango/src/fontmap.hg: Remove an _IGNORE() macro.
pango/src/coverage.ccg | 17 -----------------
pango/src/coverage.hg | 10 +---------
pango/src/fontmap.hg | 7 -------
3 files changed, 1 insertion(+), 33 deletions(-)
---
diff --git a/pango/src/coverage.ccg b/pango/src/coverage.ccg
index f72b2d3..7100696 100644
--- a/pango/src/coverage.ccg
+++ b/pango/src/coverage.ccg
@@ -1,8 +1,4 @@
-// -*- c++ -*-
-/* $Id: coverage.ccg,v 1.1 2003/01/21 13:41:02 murrayc Exp $ */
-
/*
- *
* Copyright 1998-1999 The Gtk-- Development Team
* Copyright 2001 Free Software Foundation
*
@@ -22,16 +18,3 @@
*/
using Level = Pango::Coverage::Level;
-
-namespace Pango
-{
-
-std::vector<unsigned char> Coverage::to_bytes() const
-{
- guchar* bytes = nullptr;
- int n_bytes = 0;
- pango_coverage_to_bytes(const_cast<PangoCoverage*>(gobj()), &bytes, &n_bytes);
- return Glib::ArrayHandler<unsigned char>::array_to_vector(bytes, n_bytes, Glib::OWNERSHIP_SHALLOW);
-}
-
-} /* namespace Pango */
diff --git a/pango/src/coverage.hg b/pango/src/coverage.hg
index 9506b91..325f4af 100644
--- a/pango/src/coverage.hg
+++ b/pango/src/coverage.hg
@@ -37,23 +37,15 @@ class Coverage final
_CLASS_OPAQUE_REFCOUNTED(Coverage, PangoCoverage, pango_coverage_new, pango_coverage_ref,
pango_coverage_unref)
_IGNORE(pango_coverage_ref, pango_coverage_unref)
_IGNORE(pango_coverage_copy) //pango ref doc: "This function may now be unecessary since we refcount the
structure. Mail otaylor redhat.com if you use it."
- _IGNORE(pango_coverage_to_bytes)
+ _IGNORE(pango_coverage_to_bytes, pango_coverage_from_bytes, pango_coverage_max)dnl// deprecated
public:
_WRAP_ENUM(Level, PangoCoverageLevel)
- _WRAP_METHOD(static Glib::RefPtr<Coverage> create(const guchar* bytes, int n_bytes),
pango_coverage_from_bytes)
-
//_WRAP_METHOD(Glib::RefPtr<Coverage> copy() const, pango_coverage_copy) //see above
_WRAP_METHOD(Level get(int index) const, pango_coverage_get)
_WRAP_METHOD(void set(int index, Level level), pango_coverage_set)
- _WRAP_METHOD(void max(const Glib::RefPtr<Coverage>& other) const, pango_coverage_max)
-
- /** Convert the coverage map into a flat binary format.
- * @return An array of bytes representing the coverage map.
- */
- std::vector<unsigned char> to_bytes() const;
};
} // namespace Pango
diff --git a/pango/src/fontmap.hg b/pango/src/fontmap.hg
index e73b7e6..4f3dd13 100644
--- a/pango/src/fontmap.hg
+++ b/pango/src/fontmap.hg
@@ -1,5 +1,3 @@
-/* $Id: fontmap.hg,v 1.2 2004/03/03 01:07:40 murrayc Exp $ */
-
/* fontmap.h
*
* Copyright 2001 The gtkmm Development Team
@@ -19,7 +17,6 @@
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
#include <glibmm/object.h>
#include <pangomm/font.h>
#include <pangomm/fontset.h>
@@ -55,10 +52,6 @@ public:
_WRAP_METHOD(guint get_serial() const, pango_font_map_get_serial)
_IGNORE(pango_font_map_changed)
-
- //This is not used unless ENABLE_BACKEND is defined: _WRAP_METHOD(Glib::ustring get_shape_engine_type()
const, pango_font_map_get_shape_engine_type)
- _IGNORE(pango_font_map_get_shape_engine_type)
};
} /* namespace Pango */
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]