summaryrefslogtreecommitdiff
path: root/mkvlib
diff options
context:
space:
mode:
authorb5f0d6c3 <[email protected]>2022-05-03 09:23:34 +0800
committerb5f0d6c3 <[email protected]>2022-05-03 09:23:34 +0800
commit9171f2df2b05d818eb6460ffedf53ecddf9120d3 (patch)
tree3d0cc15ba05720bbe31e915a93f628b61bf42dac /mkvlib
parent8dba7ebfc90a0efccd355ed639e326c769647a52 (diff)
update mkvlib:clean
Diffstat (limited to 'mkvlib')
-rw-r--r--mkvlib/ass.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/mkvlib/ass.go b/mkvlib/ass.go
index 321ca75..630478b 100644
--- a/mkvlib/ass.go
+++ b/mkvlib/ass.go
@@ -2,7 +2,6 @@ package mkvlib
import (
"bytes"
- "encoding/binary"
"encoding/json"
"fmt"
"github.com/KurenaiRyu/MkvAutoSubset/mkvlib/parser"
@@ -184,18 +183,6 @@ func (self *assProcessor) getFontsList() []string {
return list
}
-func (self *assProcessor) getTTCCount(file string) int {
- f, err := openFile(file, true, false)
- if err == nil {
- defer func() { _ = f.Close() }()
- data := make([]byte, 4)
- if n, err := f.ReadAt(data, 8); err == nil && n == 4 {
- return int(binary.BigEndian.Uint32(data))
- }
- }
- return 0
-}
-
func (self *assProcessor) dumpFont(file, out string) bool {
ok := false
_, n, _, _ := splitPath(file)