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

@@ -59,15 +59,6 @@ pub fn mode_get(
let (mut reader, _, _) = item_service.get_item_content_info_streaming(
conn,
item_id,
None, // head_bytes
None, // head_words
None, // head_lines
None, // tail_bytes
None, // tail_words
None, // tail_lines
None, // line_start
None, // line_end
None, // grep
filter_str.clone(),
)?;
@@ -84,15 +75,6 @@ pub fn mode_get(
let (new_reader, _, _) = item_service.get_item_content_info_streaming(
conn,
item_id,
None,
None,
None,
None,
None,
None,
None,
None,
None,
filter_str.clone(),
)?;
reader = new_reader;