Skip to content

Commit

Permalink
Remove legacy code (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwagner84 authored Jul 7, 2023
1 parent 5d132b9 commit 698cbe3
Show file tree
Hide file tree
Showing 25 changed files with 0 additions and 3,413 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ jobs:
item:
- { name: record_ref, fuzz-dir: pica-record/fuzz, target: fuzz_record_ref, max-total-time: 300 }
- { name: select_query, fuzz-dir: pica-select/fuzz, target: fuzz_query, max-total-time: 300 }
- { name: byte_record, fuzz-dir: fuzz, target: fuzz_byte_record, max-total-time: 300 }
- { name: fuzz_path, fuzz-dir: fuzz, target: fuzz_path, max-total-time: 300 }
steps:
- uses: actions/checkout@v3
- uses: abbbi/github-actions-tune@v1
Expand Down
5 changes: 0 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ name = "pica"
path = "src/bin/pica/main.rs"
name = "pica"

[[example]]
name = "parser"
path = "examples/parser.rs"
test = false

[profile.release]
codegen-units = 1
panic = "abort"
Expand Down
26 changes: 0 additions & 26 deletions examples/parser.rs

This file was deleted.

4 changes: 0 additions & 4 deletions fuzz/.gitignore

This file was deleted.

44 changes: 0 additions & 44 deletions fuzz/Cargo.toml

This file was deleted.

8 changes: 0 additions & 8 deletions fuzz/fuzz_targets/fuzz_byte_record.rs

This file was deleted.

10 changes: 0 additions & 10 deletions fuzz/fuzz_targets/fuzz_filter.rs

This file was deleted.

8 changes: 0 additions & 8 deletions fuzz/fuzz_targets/fuzz_path.rs

This file was deleted.

11 changes: 0 additions & 11 deletions fuzz/fuzz_targets/fuzz_selectors.rs

This file was deleted.

9 changes: 0 additions & 9 deletions src/bin/pica/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@ fn main() {
{
process::exit(0); // no-coverage
}
Err(CliError::Pica(pica::Error::Io(ref err)))
if err.kind() == io::ErrorKind::BrokenPipe =>
{
process::exit(0); // no-coverage
}
Err(CliError::ParsePica(err)) => {
eprintln!("Parse Pica Error: {err}");
process::exit(1);
Expand All @@ -110,10 +105,6 @@ fn main() {
eprintln!("Parse Query Error: {err}");
process::exit(1);
}
Err(CliError::Pica(err)) => {
eprintln!("Pica Error: {err}");
process::exit(1);
}
Err(CliError::Io(err)) => {
eprintln!("IO Error: {err}");
process::exit(1);
Expand Down
8 changes: 0 additions & 8 deletions src/bin/pica/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ pub(crate) type CliResult<T> = Result<T, CliError>;
pub(crate) enum CliError {
Io(io::Error),
Csv(csv::Error),
Pica(pica::Error),
ParsePica(String),
ParsePath(pica_path::ParsePathError),
ParseMatcher(pica_matcher::ParseMatcherError),
Expand All @@ -20,7 +19,6 @@ impl fmt::Display for CliError {
match *self {
CliError::Csv(ref e) => e.fmt(f),
CliError::Io(ref e) => e.fmt(f),
CliError::Pica(ref e) => e.fmt(f),
CliError::ParsePica(ref e) => e.fmt(f),
CliError::ParsePath(ref e) => e.fmt(f),
CliError::ParseMatcher(ref e) => e.fmt(f),
Expand All @@ -30,12 +28,6 @@ impl fmt::Display for CliError {
}
}

impl From<pica::Error> for CliError {
fn from(err: pica::Error) -> CliError {
CliError::Pica(err)
}
}

impl From<io::Error> for CliError {
fn from(err: io::Error) -> CliError {
CliError::Io(err)
Expand Down
89 changes: 0 additions & 89 deletions src/common.rs

This file was deleted.

Loading

0 comments on commit 698cbe3

Please sign in to comment.