Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
youyuanwu committed Nov 6, 2024
1 parent ce0d3af commit 5d75e5e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions crates/libs/core/src/runtime/stateful.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ pub trait StatefulServiceFactory {
pub trait LocalStatefulServiceReplica: Send + Sync + 'static {
/// Opens an initialized service replica so that additional actions can be taken.
/// Returns PrimaryReplicator that is used by the stateful service.
// Note: we use async trait and cannot use dynamic dispatch to build a similar
// interface hierachy for COM objects. The return type is subject to change in future.
async fn open(
&self,
openmode: OpenMode,
Expand Down Expand Up @@ -153,7 +151,3 @@ pub trait LocalPrimaryReplicator: Replicator {
) -> crate::Result<()>;
fn remove_replica(&self, replicaid: i64) -> crate::Result<()>;
}

// IFabricReplicatorCatchupSpecificQuorum
// replicator is checked to have this interface
// implemented: https://github.com/microsoft/service-fabric/blob/9d25e17d9e19ca46bbd1142bfcbae8416ba45e61/src/prod/src/Reliability/Failover/ra/ComProxyReplicator.h#L25
4 changes: 0 additions & 4 deletions crates/libs/core/src/runtime/stateful_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,6 @@ impl PrimaryReplicatorProxy {
let parent = ReplicatorProxy::new(com_impl.clone().cast().unwrap());
PrimaryReplicatorProxy { com_impl, parent }
}

pub fn get_com(&self) -> &IFabricPrimaryReplicator {
&self.com_impl
}
}

impl Replicator for PrimaryReplicatorProxy {
Expand Down

0 comments on commit 5d75e5e

Please sign in to comment.