shithub: freetype+ttf2subf

Download patch

ref: 3867d2f2fbe6aae96da30e12d1270cac92576151
parent: 5556dd21309171492c3c17275675b597a0a6ba9a
author: Werner Lemberg <[email protected]>
date: Wed Mar 22 03:03:06 EST 2006

* src/cache/ftccache.c, src/cache/ftccache.h (FTC_Node_Destroy):
Remove, unused.

* src/cache/ftccmap.h: Remove, unused.

* src/cache/rules.mk (CACHE_DRV_H): Remove ftccmap.h.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2006-03-22  Werner Lemberg  <[email protected]>
+
+	* src/cache/ftccache.c, src/cache/ftccache.h (FTC_Node_Destroy):
+	Remove, unused.
+
+	* src/cache/ftccmap.h: Remove, unused.
+
+	* src/cache/rules.mk (CACHE_DRV_H): Remove ftccmap.h.
+
 2006-03-21  Zhe Su  <[email protected]>
 
 	* src/base/ftoutln.c (FT_Outline_Get_Orientation): Improve
--- a/src/cache/ftccache.c
+++ b/src/cache/ftccache.c
@@ -247,14 +247,6 @@
   }
 
 
-  FT_EXPORT_DEF( void )
-  FTC_Node_Destroy( FTC_Node     node,
-                    FTC_Manager  manager )
-  {
-    ftc_node_destroy( node, manager );
-  }
-
-
   /* remove a node from the cache manager */
 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS
   FT_BASE_DEF( void )
--- a/src/cache/ftccache.h
+++ b/src/cache/ftccache.h
@@ -66,21 +66,8 @@
 #define FTC_NODE( x )    ( (FTC_Node)(x) )
 #define FTC_NODE_P( x )  ( (FTC_Node*)(x) )
 
-#define FTC_NODE__NEXT(x)  FTC_NODE( (x)->mru.next )
-#define FTC_NODE__PREV(x)  FTC_NODE( (x)->mru.prev )
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* These functions are exported so that they can be called from          */
-  /* user-provided cache classes; otherwise, they are really part of the   */
-  /* cache sub-system internals.                                           */
-  /*                                                                       */
-
-  /* reserved for manager's use */
-  FT_EXPORT( void )
-  FTC_Node_Destroy( FTC_Node     node,
-                    FTC_Manager  manager );
+#define FTC_NODE__NEXT( x )  FTC_NODE( (x)->mru.next )
+#define FTC_NODE__PREV( x )  FTC_NODE( (x)->mru.prev )
 
 
 #ifdef FT_CONFIG_OPTION_OLD_INTERNALS
--- a/src/cache/ftccmap.h
+++ /dev/null
@@ -1,93 +1,0 @@
-/***************************************************************************/
-/*                                                                         */
-/*  ftccmap.h                                                              */
-/*                                                                         */
-/*    FreeType charmap cache (specification).                              */
-/*                                                                         */
-/*  Copyright 2000-2001, 2003, 2005, 2006 by                               */
-/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
-/*                                                                         */
-/*  This file is part of the FreeType project, and may only be used,       */
-/*  modified, and distributed under the terms of the FreeType project      */
-/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
-/*  this file you indicate that you have read the license and              */
-/*  understand and accept it fully.                                        */
-/*                                                                         */
-/***************************************************************************/
-
-
-#ifndef __FTCCMAP_H__
-#define __FTCCMAP_H__
-
-#include <ft2build.h>
-#include FT_CACHE_H
-
-
-FT_BEGIN_HEADER
-
-
-  /*
-   *  The FreeType 2.1.7 Charmap cache interface.
-   *
-   *  Unfortunately, it is not possible to implement it in later versions,
-   *  since some function signatures changed too significantly to do that.
-   *
-   */
-
-#if 0
-
-  typedef enum  FTC_CMapType_
-  {
-    FTC_CMAP_BY_INDEX    = 0,
-    FTC_CMAP_BY_ENCODING = 1,
-    FTC_CMAP_BY_ID       = 2
-
-  } FTC_CMapType;
-
-
-  typedef struct  FTC_CMapIdRec_
-  {
-    FT_UInt  platform;
-    FT_UInt  encoding;
-
-  } FTC_CMapIdRec;
-
-
-  typedef struct  FTC_CMapDescRec_
-  {
-    FTC_FaceID    face_id;
-    FTC_CMapType  type;
-
-    union
-    {
-      FT_UInt        index;
-      FT_Encoding    encoding;
-      FTC_CMapIdRec  id;
-
-    } u;
-
-  } FTC_CMapDescRec, *FTC_CMapDesc;
-
-
-  FT_EXPORT( FT_Error )
-  FTC_CMapCache_New( FTC_Manager     manager,
-                     FTC_CMapCache  *acache );
-
-
-  FT_EXPORT( FT_UInt )
-  FTC_CMapCache_Lookup( FTC_CMapCache  cache,
-                        FTC_CMapDesc   cmap_desc,
-                        FT_UInt32      char_code );
-                        
-#endif /* 0 */
-
-  /* */
-
-
-FT_END_HEADER
-
-
-#endif /* __FTCCMAP_H__ */
-
-
-/* END */
--- a/src/cache/rules.mk
+++ b/src/cache/rules.mk
@@ -36,7 +36,6 @@
 # Cache driver headers
 #
 CACHE_DRV_H := $(CACHE_DIR)/ftccback.h \
-               $(CACHE_DIR)/ftccmap.h  \
                $(CACHE_DIR)/ftcerror.h \
                $(CACHE_DIR)/ftcglyph.h \
                $(CACHE_DIR)/ftcimage.h \