Skip to content

Commit

Permalink
deleted some unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Dec 4, 2024
1 parent 7928b28 commit c53733c
Show file tree
Hide file tree
Showing 17 changed files with 30 additions and 243 deletions.
72 changes: 29 additions & 43 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ dirs = "5"
deadpool-postgres = "0.12"
deadpool = "0.10"
tokio-postgres = { version = "0.7", features = ["with-serde_json-1", "with-uuid-1"] }
postgres-types = "0.2"
async-lock = "3"
async-recursion = "1"
async-trait = "0.1"
Expand Down Expand Up @@ -129,7 +128,6 @@ slug = "0.1"
thiserror = "1"
tokio = { version = "1", features = ["full"] }
tracing = "0.1"
tracing-subscriber = "0.3"
scc = "2"
url = "2"
walkdir = "2"
Expand Down
2 changes: 0 additions & 2 deletions clift/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ serde_json.workspace = true
sha2.workspace = true
thiserror.workspace = true
tokio.workspace = true
#tracing.workspace = true
#url.workspace = true
7 changes: 0 additions & 7 deletions fastn-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use-config-json = []
[dependencies]
actix-web.workspace = true
antidote.workspace = true
async-lock.workspace = true
async-recursion.workspace = true
scc.workspace = true
camino.workspace = true
Expand All @@ -24,7 +23,6 @@ http.workspace = true
bytes.workspace = true
clap.workspace = true
colored.workspace = true
deadpool-postgres.workspace = true
diffy.workspace = true
dirs.workspace = true
env_logger.workspace = true
Expand All @@ -40,26 +38,21 @@ ft-sys-shared.workspace = true
futures-core.workspace = true
futures-util.workspace = true
futures.workspace = true
hyper.workspace = true
ignore.workspace = true
deadpool.workspace = true
indoc.workspace = true
itertools.workspace = true
mime_guess.workspace = true
once_cell.workspace = true
postgres-types.workspace = true
rand.workspace = true
realm-lang.workspace = true
regex.workspace = true
reqwest.workspace = true
rusqlite.workspace = true
serde.workspace = true
serde_json.workspace = true
sha2.workspace = true
thiserror.workspace = true
tokio-postgres.workspace = true
tokio.workspace = true
tracing-subscriber.workspace = true
tracing.workspace = true
url.workspace = true
zip.workspace = true
Expand Down
2 changes: 0 additions & 2 deletions fastn-expr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ license.workspace = true
repository.workspace = true
homepage.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
thiserror.workspace = true
1 change: 0 additions & 1 deletion fastn-issues/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ homepage.workspace = true

[dependencies]
ftd.workspace = true
rusqlite.workspace = true
thiserror.workspace = true
13 changes: 0 additions & 13 deletions fastn-issues/src/initialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ pub enum InitializePackageError {
#[from]
source: FastnFTDError,
},
#[error("db initialisation error: {source}")]
InitializeDBError {
#[from]
source: InitializeDBError,
},
}

#[derive(thiserror::Error, Debug)]
Expand Down Expand Up @@ -87,11 +82,3 @@ pub enum GetNameError {
#[error("fastn.package was not initialised in FASTN.ftd")]
PackageIsNone,
}

#[derive(thiserror::Error, Debug)]
pub enum InitializeDBError {
#[error("cant open db connection: {source}")]
OpenDBConnection { source: rusqlite::Error },
#[error("cant create tables: {source}")]
CreateTables { source: rusqlite::Error },
}
12 changes: 0 additions & 12 deletions fastn-issues/src/initialization_display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use fastn_issues::initialization::*;
pub fn display_initialisation_error(e: &InitializePackageError) {
match e {
InitializePackageError::FastnFTDError { source } => display_fastn_ftd_error(source),
InitializePackageError::InitializeDBError { source } => display_initialize_db_error(source),
}
}

Expand All @@ -21,14 +20,3 @@ fn display_fastn_ftd_error(e: &FastnFTDError) {
}
}
}

fn display_initialize_db_error(e: &InitializeDBError) {
match e {
InitializeDBError::OpenDBConnection { .. } => {
todo!()
}
InitializeDBError::CreateTables { .. } => {
todo!()
}
}
}
1 change: 0 additions & 1 deletion fastn-issues/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ extern crate self as fastn_issues;

pub mod initialization;
pub mod initialization_display;
pub mod reporter;
Loading

0 comments on commit c53733c

Please sign in to comment.