summaryrefslogtreecommitdiff
path: root/include/X11
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2017-01-04 12:13:04 -0500
committerAdam Jackson <ajax@redhat.com>2019-05-14 15:36:20 -0400
commit77ae4048564eff2e96b80cedfac013877e46d506 (patch)
treed35ac82db0ad6b16de6fd0044ae50e84d6d0745b /include/X11
parent6624b5e705da8333a3bc63d1ddeea6b11e831e24 (diff)
fontfile: Remove unused 'bc' slot from _FontEntry
Whatever this is, we're not using it. On my machine we allocate about 1100 of these structs, and this change reduces the struct from 152 to 48 bytes, so this saves about 100k of memory. Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'include/X11')
-rw-r--r--include/X11/fonts/fntfil.h3
-rw-r--r--include/X11/fonts/fntfilst.h6
2 files changed, 0 insertions, 9 deletions
diff --git a/include/X11/fonts/fntfil.h b/include/X11/fonts/fntfil.h
index 24be79a..473474b 100644
--- a/include/X11/fonts/fntfil.h
+++ b/include/X11/fonts/fntfil.h
@@ -42,7 +42,6 @@ typedef struct _FontScalableEntry *FontScalableEntryPtr;
typedef struct _FontScaleAliasEntry *FontScaleAliasEntryPtr;
typedef struct _FontBitmapEntry *FontBitmapEntryPtr;
typedef struct _FontAliasEntry *FontAliasEntryPtr;
-typedef struct _FontBCEntry *FontBCEntryPtr;
typedef struct _FontDirectory *FontDirectoryPtr;
typedef struct _FontRenderer *FontRendererPtr;
@@ -55,7 +54,6 @@ typedef struct _FontRenderer *FontRendererPtr;
#define NullFontScaleAliasEntry ((FontScaleAliasEntry) 0)
#define NullFontBitmapEntry ((FontBitmapEntry) 0)
#define NullFontAliasEntry ((FontAliasEntry) 0)
-#define NullFontBCEntry ((FontBCEntry) 0)
#define NullFontDirectory ((FontDirectoryPtr) 0)
#define NullFontRenderer ((FontRendererPtr) 0)
@@ -63,7 +61,6 @@ typedef struct _FontRenderer *FontRendererPtr;
#define FONT_ENTRY_SCALE_ALIAS 1
#define FONT_ENTRY_BITMAP 2
#define FONT_ENTRY_ALIAS 3
-#define FONT_ENTRY_BC 4
#define MAXFONTNAMELEN 1024
#define MAXFONTFILENAMELEN 1024
diff --git a/include/X11/fonts/fntfilst.h b/include/X11/fonts/fntfilst.h
index 6e8645e..e5a59e5 100644
--- a/include/X11/fonts/fntfilst.h
+++ b/include/X11/fonts/fntfilst.h
@@ -85,11 +85,6 @@ typedef struct _FontAliasEntry {
char *resolved;
} FontAliasEntryRec;
-typedef struct _FontBCEntry {
- FontScalableRec vals;
- FontEntryPtr entry;
-} FontBCEntryRec;
-
typedef struct _FontEntry {
FontNameRec name;
int type;
@@ -97,7 +92,6 @@ typedef struct _FontEntry {
FontScalableEntryRec scalable;
FontBitmapEntryRec bitmap;
FontAliasEntryRec alias;
- FontBCEntryRec bc;
} u;
} FontEntryRec;