aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/config.rs b/src/config.rs
index 8e531a9c..e7f1b587 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -385,18 +385,6 @@ pub struct Config {
scrolling: Scrolling,
}
-fn deserialize_scroll_history<'a, D>(deserializer: D) -> ::std::result::Result<u32, D::Error>
- where D: de::Deserializer<'a>
-{
- match u32::deserialize(deserializer) {
- Ok(lines) => Ok(lines),
- Err(err) => {
- eprintln!("problem with config: {}; Using default value", err);
- Ok(default_scroll_history())
- },
- }
-}
-
fn failure_default_vec<'a, D, T>(deserializer: D) -> ::std::result::Result<Vec<T>, D::Error>
where D: de::Deserializer<'a>,
T: Deserialize<'a>