Skip to content

Commit

Permalink
Remove the wipe endpoint
Browse files Browse the repository at this point in the history
this endpoint is unused and bringing it up to functionality again after
recent migrations just isn't justified.
  • Loading branch information
jkilpatr committed Aug 26, 2024
1 parent d3c5f3a commit 50d2214
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 85 deletions.
2 changes: 0 additions & 2 deletions rita_client/src/dashboard/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ use rita_common::dashboard::babel::*;
use rita_common::dashboard::backup_created::*;
use rita_common::dashboard::contact_info::*;
use rita_common::dashboard::debts::*;
use rita_common::dashboard::development::*;
use rita_common::dashboard::eth_private_key::*;
use rita_common::dashboard::interfaces::*;
use rita_common::dashboard::localization::*;
Expand Down Expand Up @@ -164,7 +163,6 @@ pub fn start_client_dashboard(rita_dashboard_port: u16) {
"/remote_access/{status}",
web::post().to(set_remote_access_status),
)
.route("/wipe", web::post().to(wipe))
.route("/localization", web::get().to(get_localization))
.route(
"/installation_details",
Expand Down
78 changes: 0 additions & 78 deletions rita_common/src/dashboard/development.rs

This file was deleted.

1 change: 0 additions & 1 deletion rita_common/src/dashboard/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ pub mod babel;
pub mod backup_created;
pub mod contact_info;
pub mod debts;
pub mod development;
pub mod eth_private_key;
pub mod interfaces;
pub mod localization;
Expand Down
1 change: 0 additions & 1 deletion rita_common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ pub use error::RitaCommonError;

pub use crate::dashboard::babel::*;
pub use crate::dashboard::debts::*;
pub use crate::dashboard::development::*;
pub use crate::dashboard::nickname::*;
pub use crate::dashboard::own_info::*;
pub use crate::dashboard::settings::*;
Expand Down
5 changes: 4 additions & 1 deletion rita_common/src/tunnel_manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,10 @@ impl TunnelManager {
for t in tl {
if !ports.insert(t.listen_port) {
// we panic here in tests so we can identify the issue
if cfg!(test) || cfg!(feature = "integration_test") || cfg!(feature = "legacy_integration_test") {
if cfg!(test)
|| cfg!(feature = "integration_test")
|| cfg!(feature = "legacy_integration_test")
{
panic!("Found duplicate port in use by tunnel manager!?");
}
}
Expand Down
2 changes: 0 additions & 2 deletions rita_exit/src/dashboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use rita_common::dashboard::babel::*;
use rita_common::dashboard::backup_created::*;
use rita_common::dashboard::contact_info::*;
use rita_common::dashboard::debts::*;
use rita_common::dashboard::development::*;
use rita_common::dashboard::eth_private_key::get_eth_private_key;
use rita_common::dashboard::interfaces::*;
use rita_common::dashboard::localization::*;
Expand Down Expand Up @@ -57,7 +56,6 @@ pub fn start_rita_exit_dashboard(startup_status: Arc<RwLock<Option<String>>>) {
.route("/settings", web::post().to(set_settings))
.route("/version", web::get().to(version))
.route("/wg_public_key", web::get().to(get_wg_public_key))
.route("/wipe", web::post().to(wipe))
.route("/debts", web::get().to(get_debts))
.route("/debts/reset", web::post().to(reset_debt))
.route("/withdraw/{address}/{amount}", web::post().to(withdraw))
Expand Down

0 comments on commit 50d2214

Please sign in to comment.