refactor: Simplify content streaming by consolidating filter parameters

Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-09-02 18:36:54 -03:00
parent 22c91202a5
commit 2fcf922dd8
3 changed files with 3 additions and 99 deletions

View File

@@ -206,14 +206,6 @@ impl AsyncItemService {
// Get binary status using streaming approach
let (_, _, is_binary) = self.get_item_content_info_streaming(
item_id,
head_bytes,
head_words,
head_lines,
tail_bytes,
tail_words,
tail_lines,
line_start,
line_end,
None
).await?;
is_binary
@@ -233,15 +225,6 @@ impl AsyncItemService {
item_service.get_item_content_info_streaming(
&conn,
item_id,
head_bytes,
head_words,
head_lines,
tail_bytes,
tail_words,
tail_lines,
line_start,
line_end,
grep,
None
).map(|(reader, _, _)| reader)
})
@@ -342,15 +325,6 @@ impl AsyncItemService {
item_service.get_item_content_info_streaming(
&conn,
item_id,
head_bytes,
head_words,
head_lines,
tail_bytes,
tail_words,
tail_lines,
line_start,
line_end,
grep,
None
)
})