Remove public API of the branch

This commit is contained in:
Ebrahim Byagowi 2018-02-26 12:45:08 +03:30
parent 551fa2d200
commit 0ad8c663e0
3 changed files with 35 additions and 37 deletions

View File

@ -48,8 +48,8 @@ HB_BEGIN_DECLS
/* Methods */
HB_EXTERN hb_bool_t
hb_ot_base_has_data (hb_face_t *face);
// HB_EXTERN hb_bool_t
// hb_ot_base_has_data (hb_face_t *face);
HB_END_DECLS

View File

@ -23,8 +23,8 @@
*
*/
#ifndef HB_OT_BASE_TABLE_HH
#define HB_OT_BASE_TABLE_HH
#ifndef HB_OT_LAYOUT_BASE_TABLE_HH
#define HB_OT_LAYOUT_BASE_TABLE_HH
#include "hb-open-type-private.hh"
#include "hb-ot-layout-common-private.hh"
@ -796,4 +796,4 @@ struct BASE
} /* namespace OT */
#endif /* HB_OT_BASE_TABLE_HH */
#endif /* HB_OT_LAYOUT_BASE_TABLE_HH */

View File

@ -222,13 +222,13 @@ _hb_ot_layout_destroy (hb_ot_layout_t *layout)
free (layout);
}
static inline const OT::BASE&
_get_base (hb_face_t *face)
{
if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return OT::Null(OT::BASE);
hb_ot_layout_t * layout = hb_ot_layout_from_face (face);
return *(layout->base.get ());
}
// static inline const OT::BASE&
// _get_base (hb_face_t *face)
// {
// if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return OT::Null(OT::BASE);
// hb_ot_layout_t * layout = hb_ot_layout_from_face (face);
// return *(layout->base.get ());
// }
static inline const OT::GDEF&
_get_gdef (hb_face_t *face)
@ -1283,21 +1283,19 @@ hb_ot_layout_substitute_lookup (OT::hb_ot_apply_context_t *c,
* OT::BASE
*/
#if 0
/**
* hb_ot_base_has_data:
* @face: #hb_face_t to test
*
* This function allows to verify the presence of an OpenType BASE table on the
* face.
*
* Return value: true if face has a BASE table, false otherwise
*
* Since: XXX
**/
hb_bool_t
hb_ot_base_has_data (hb_face_t *face)
{
return &_get_base (face) != &OT::Null(OT::BASE);
}
#endif
// /**
// * hb_ot_base_has_data:
// * @face: #hb_face_t to test
// *
// * This function allows to verify the presence of an OpenType BASE table on the
// * face.
// *
// * Return value: true if face has a BASE table, false otherwise
// *
// * Since: XXX
// **/
// hb_bool_t
// hb_ot_base_has_data (hb_face_t *face)
// {
// return &_get_base (face) != &OT::Null(OT::BASE);
// }