Skip to content

Commit 36657c7

Browse files
committed
Remove unused code
1 parent 1eb4de7 commit 36657c7

File tree

3 files changed

+1
-19
lines changed

3 files changed

+1
-19
lines changed

src/currentprocess/filesource.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use crate::currentprocess::Process;
66
/// Stand-in for std::io::Stdin
77
pub trait Stdin {
88
fn lock(&self) -> Box<dyn StdinLock + '_>;
9-
fn read_line(&self, buf: &mut String) -> Result<usize>;
109
}
1110

1211
/// Stand-in for std::io::StdinLock
@@ -20,10 +19,6 @@ impl Stdin for io::Stdin {
2019
fn lock(&self) -> Box<dyn StdinLock + '_> {
2120
Box::new(io::Stdin::lock(self))
2221
}
23-
24-
fn read_line(&self, buf: &mut String) -> Result<usize> {
25-
io::Stdin::read_line(self, buf)
26-
}
2722
}
2823

2924
// -------------- stdout -------------------------------
@@ -133,9 +128,6 @@ mod test_support {
133128
inner: self.0.lock().unwrap_or_else(|e| e.into_inner()),
134129
})
135130
}
136-
fn read_line(&self, buf: &mut String) -> Result<usize> {
137-
self.lock().read_line(buf)
138-
}
139131
}
140132

141133
// ----------------------- test support for writers ------------------

src/currentprocess/terminalsource.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,6 @@ impl ColorableTerminal {
146146
}
147147
}
148148

149-
pub fn bg(&mut self, color: Color) -> io::Result<()> {
150-
match self.inner.lock().unwrap().deref_mut() {
151-
TerminalInner::StandardStream(s, spec) => {
152-
spec.set_bg(Some(color));
153-
s.set_color(spec)
154-
}
155-
#[cfg(feature = "test")]
156-
TerminalInner::TestWriter(_, _) => Ok(()),
157-
}
158-
}
159-
160149
pub fn attr(&mut self, attr: Attr) -> io::Result<()> {
161150
match self.inner.lock().unwrap().deref_mut() {
162151
TerminalInner::StandardStream(s, spec) => {

src/dist/manifestation.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ impl Manifestation {
325325
Ok(UpdateStatus::Changed)
326326
}
327327

328+
#[cfg(test)]
328329
pub fn uninstall(
329330
&self,
330331
manifest: &Manifest,

0 commit comments

Comments
 (0)