From b7798d3968e02e91e2699961e84afe72ff433d0a Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Fri, 11 Sep 2015 05:27:42 -0400 Subject: [PATCH] Replace SubtableValidPredFunc with func signature. --- truetype/truetype.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/truetype/truetype.go b/truetype/truetype.go index faa8797..8cfbfea 100644 --- a/truetype/truetype.go +++ b/truetype/truetype.go @@ -113,11 +113,8 @@ func readTable(ttf []byte, offsetLength []byte) ([]byte, error) { return ttf[offset:end], nil } - -type SubtableValidPredFunc func(b []byte) bool - // parseSubtables wraps the commonality in Name and parseCmap. -func parseSubtables(b []byte, name string, subtableOffset, subtableSize int, tableCheck SubtableValidPredFunc) (int, int, error) { +func parseSubtables(b []byte, name string, offset, size int, tableCheckPred func(b []byte) bool) (int, int, error) { if len(b) < 4 { return 0, 0, FormatError(name + " too short") }