Skip to content

Commit

Permalink
refactor: remove unused version code (#627)
Browse files Browse the repository at this point in the history
Both interest-svc and event-svc had entities and queries for a versions
table that was not used. They have been deleted.
  • Loading branch information
nathanielc authored Dec 6, 2024
1 parent c959cc3 commit c9c8bef
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 285 deletions.
2 changes: 1 addition & 1 deletion event-svc/src/store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ pub use metrics::{Metrics, StoreMetricsMiddleware};
pub use sql::{
entities::{BlockHash, EventBlockRaw, EventInsertable},
BlockAccess, Error, EventAccess, EventBlockAccess, EventRowDelivered, InsertResult,
InsertedEvent, Result, SqlitePool, SqliteRootStore, VersionAccess,
InsertedEvent, Result, SqlitePool, SqliteRootStore,
};
2 changes: 0 additions & 2 deletions event-svc/src/store/sql/access/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
mod block;
mod event;
mod event_block;
mod version;

pub use block::BlockAccess;
pub use event::{EventAccess, EventRowDelivered, InsertResult, InsertedEvent};
pub use event_block::EventBlockAccess;
pub use version::VersionAccess;
95 changes: 0 additions & 95 deletions event-svc/src/store/sql/access/version.rs

This file was deleted.

2 changes: 0 additions & 2 deletions event-svc/src/store/sql/entities/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ mod event;
mod event_block;
mod hash;
mod utils;
mod version;

pub use block::{BlockBytes, BlockRow};
pub use event::{rebuild_car, EventInsertable};
pub use event_block::{EventBlockRaw, ReconEventBlockRaw};
pub use hash::{BlockHash, ReconHash};
pub use version::VersionRow;

pub use utils::{CountRow, OrderKey};
39 changes: 0 additions & 39 deletions event-svc/src/store/sql/entities/version.rs

This file was deleted.

1 change: 0 additions & 1 deletion event-svc/src/store/sql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ mod test;

pub use access::{
BlockAccess, EventAccess, EventBlockAccess, EventRowDelivered, InsertResult, InsertedEvent,
VersionAccess,
};
pub use ceramic_sql::{sqlite::SqlitePool, Error, Result};
pub use root::SqliteRootStore;
4 changes: 1 addition & 3 deletions interest-svc/src/store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ mod metrics;
mod sql;

pub use metrics::{Metrics, StoreMetricsMiddleware};
pub use sql::{
CeramicOneInterest, CeramicOneVersion, Error, Result, SqlitePool, SqliteTransaction,
};
pub use sql::{CeramicOneInterest, Error, Result, SqlitePool, SqliteTransaction};
2 changes: 0 additions & 2 deletions interest-svc/src/store/sql/access/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
mod interest;
mod version;

pub use interest::CeramicOneInterest;
pub use version::CeramicOneVersion;
98 changes: 0 additions & 98 deletions interest-svc/src/store/sql/access/version.rs

This file was deleted.

2 changes: 0 additions & 2 deletions interest-svc/src/store/sql/entities/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
mod hash;
mod order_key;
mod version;

pub use hash::ReconHash;
pub use order_key::OrderKey;
pub use version::VersionRow;
39 changes: 0 additions & 39 deletions interest-svc/src/store/sql/entities/version.rs

This file was deleted.

2 changes: 1 addition & 1 deletion interest-svc/src/store/sql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mod access;
pub mod entities;
mod query;

pub use access::{CeramicOneInterest, CeramicOneVersion};
pub use access::CeramicOneInterest;
pub use ceramic_sql::{
sqlite::{SqlitePool, SqliteTransaction},
Error, Result,
Expand Down

0 comments on commit c9c8bef

Please sign in to comment.