Skip to content

Commit f31835f

Browse files
committed
refactor(codex): remove unused loader wrapper
1 parent 096f070 commit f31835f

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

‎rust/adapters/codex/src/lib.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use crate::{PricingMap, Result, cli::AgentCommandArgs, log_level, print_json_or_
1515
pub use aggregate::{aggregate_events, filter_events_by_date, load_groups};
1616
#[doc(hidden)]
1717
pub use loader::load_codex_events_from_directory;
18-
pub use loader::{load_codex_events, load_codex_events_with_detection};
18+
pub use loader::load_codex_events_with_detection;
1919
pub use report::{
2020
calculate_codex_model_cost, calculate_group_cost, codex_model_missing_pricing,
2121
non_cached_input_tokens,

‎rust/adapters/codex/src/loader.rs‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ pub fn load_codex_events_from_directory(
3232
Ok(events)
3333
}
3434

35-
pub fn load_codex_events(shared: &SharedArgs) -> Result<Vec<CodexTokenUsageEvent>> {
36-
load_codex_events_with_detection(shared).map(|(events, _)| events)
37-
}
38-
3935
/// Loads Codex usage events and reports whether any source file existed before
4036
/// date filtering narrowed the files to parse.
4137
pub fn load_codex_events_with_detection(

0 commit comments

Comments
 (0)