refactor: remove unused line_content variable from list block processing

This commit is contained in:
myhloli
2025-12-19 18:01:05 +08:00
parent 4dc2452063
commit 637227fafd
2 changed files with 0 additions and 2 deletions

View File

@@ -667,7 +667,6 @@ def fix_list_blocks(list_blocks, text_blocks, ref_text_blocks):
for list_block in list_blocks:
# 统计list_block["blocks"]中所有block的type用众数作为list_block的sub_type
type_count = {}
line_content = []
for sub_block in list_block["blocks"]:
sub_block_type = sub_block["type"]
if sub_block_type not in type_count:

View File

@@ -592,7 +592,6 @@ def fix_list_blocks(list_blocks, text_blocks, ref_text_blocks):
for list_block in list_blocks:
# 统计list_block["blocks"]中所有block的type用众数作为list_block的sub_type
type_count = {}
line_content = []
for sub_block in list_block["blocks"]:
sub_block_type = sub_block["type"]
if sub_block_type not in type_count: