Liang Ding пре 2 година
родитељ
комит
e7f2fb9c9c
1 измењених фајлова са 0 додато и 11 уклоњено
  1. 0 11
      kernel/model/export.go

+ 0 - 11
kernel/model/export.go

@@ -704,17 +704,6 @@ func AddPDFOutline(id, p string, merge bool) (err error) {
 		}
 	}
 
-	//if 4 == Conf.Export.BlockRefMode { // 块引转脚注
-	//	var footnotesBms []*pdfcpu.Bookmark
-	//	for _, bm := range footnotes {
-	//		footnotesBms = append(footnotesBms, bm)
-	//	}
-	//	sort.Slice(footnotesBms, func(i, j int) bool { return footnotesBms[i].PageFrom < footnotesBms[j].PageFrom })
-	//	for _, bm := range footnotesBms {
-	//		topBms = append(topBms, bm)
-	//	}
-	//}
-
 	outFile := inFile + ".tmp"
 	err = api.AddBookmarksFile(inFile, outFile, topBms, nil)
 	if nil != err {