Remove unused error type

This commit is contained in:
Matthias Beyer 2017-09-09 21:27:51 +02:00
parent ca9123c740
commit 78db822917
2 changed files with 1 additions and 31 deletions

View File

@ -76,11 +76,6 @@ error_chain! {
display("ID not found: {}", sid) display("ID not found: {}", sid)
} }
OutOfMemory {
description("Out of Memory")
display("Out of Memory")
}
FileNotFound { FileNotFound {
description("File corresponding to ID not found") description("File corresponding to ID not found")
display("File corresponding to ID not found") display("File corresponding to ID not found")
@ -156,31 +151,11 @@ error_chain! {
display("Entry has invalid formatting, missing header") display("Entry has invalid formatting, missing header")
} }
HeaderPathSyntaxError {
description("Syntax error in accessor string")
display("Syntax error in accessor string")
}
HeaderPathTypeFailure {
description("Header has wrong type for path")
display("Header has wrong type for path")
}
HeaderKeyNotFound {
description("Header Key not found")
display("Header Key not found")
}
HeaderTypeFailure { HeaderTypeFailure {
description("Header type is wrong") description("Header type is wrong")
display("Header type is wrong") display("Header type is wrong")
} }
StorePathLacksVersion {
description("The supplied store path has no version part")
display("The supplied store path has no version part")
}
GlobError { GlobError {
description("glob() error") description("glob() error")
display("glob() error") display("glob() error")
@ -273,11 +248,6 @@ error_chain! {
// Parser-related errors // Parser-related errors
TOMLParserErrors {
description("Several TOML-Parser-Errors")
display("Several TOML-Parser-Errors")
}
MissingMainSection { MissingMainSection {
description("Missing main section") description("Missing main section")
display("Missing main section") display("Missing main section")

View File

@ -1139,7 +1139,7 @@ impl Header for Value {
use toml::de::from_str; use toml::de::from_str;
from_str(s) from_str(s)
.chain_err(|| SEK::TOMLParserErrors) .map_err(From::from)
.and_then(verify_header_consistency) .and_then(verify_header_consistency)
.map(Value::Table) .map(Value::Table)
} }