Remove unused argument

This commit is contained in:
Benjamin Sago 2016-04-17 21:01:30 +01:00
parent 78ff651326
commit 476406f43b

View File

@ -83,7 +83,7 @@ impl View {
let other_options_scan = || { let other_options_scan = || {
let term_colours = try!(TerminalColours::deduce(matches)); let term_colours = try!(TerminalColours::deduce(matches));
let term_width = try!(TerminalWidth::deduce(matches)); let term_width = try!(TerminalWidth::deduce());
if let Some(&width) = term_width.as_ref() { if let Some(&width) = term_width.as_ref() {
let colours = match term_colours { let colours = match term_colours {
@ -200,7 +200,7 @@ impl TerminalWidth {
/// Determine a requested terminal width from the command-line arguments. /// Determine a requested terminal width from the command-line arguments.
/// ///
/// Returns an error if a requested width doesnt parse to an integer. /// Returns an error if a requested width doesnt parse to an integer.
fn deduce(_: &getopts::Matches) -> Result<TerminalWidth, Misfire> { fn deduce() -> Result<TerminalWidth, Misfire> {
if let Some(columns) = var_os("COLUMNS").and_then(|s| s.into_string().ok()) { if let Some(columns) = var_os("COLUMNS").and_then(|s| s.into_string().ok()) {
match columns.parse() { match columns.parse() {
Ok(width) => Ok(TerminalWidth::Set(width)), Ok(width) => Ok(TerminalWidth::Set(width)),