Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Remove unused RtOptions setters (#34552)

jif4c2dc5d28588
diff --git a/codex-rs/tui/src/wrapping.rs b/codex-rs/tui/src/wrapping.rs
index 043b5d5319..1636360def 100644
--- a/codex-rs/tui/src/wrapping.rs
+++ b/codex-rs/tui/src/wrapping.rs
@@ -600,7 +600,6 @@ impl From<usize> for RtOptions<'_> {
}
}
-#[allow(dead_code)]
impl<'a> RtOptions<'a> {
pub fn new(width: usize) -> Self {
RtOptions {
@@ -615,17 +614,6 @@ impl<'a> RtOptions<'a> {
}
}
- pub fn line_ending(self, line_ending: textwrap::LineEnding) -> Self {
- RtOptions {
- line_ending,
- ..self
- }
- }
-
- pub fn width(self, width: usize) -> Self {
- RtOptions { width, ..self }
- }
-
pub fn initial_indent(self, initial_indent: Line<'a>) -> Self {
RtOptions {
initial_indent,