mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Remove unused unsafe declarations (#1901)
This commit is contained in:
parent
385b385456
commit
b01fcd2f56
5 changed files with 0 additions and 15 deletions
|
@ -41,9 +41,6 @@ pub struct Handshake {
|
|||
config: P2PConfig,
|
||||
}
|
||||
|
||||
unsafe impl Sync for Handshake {}
|
||||
unsafe impl Send for Handshake {}
|
||||
|
||||
impl Handshake {
|
||||
/// Creates a new handshake handler
|
||||
pub fn new(genesis: Hash, config: P2PConfig) -> Handshake {
|
||||
|
|
|
@ -52,9 +52,6 @@ pub struct Peer {
|
|||
connection: Option<conn::Tracker>,
|
||||
}
|
||||
|
||||
unsafe impl Sync for Peer {}
|
||||
unsafe impl Send for Peer {}
|
||||
|
||||
impl Peer {
|
||||
// Only accept and connect can be externally used to build a peer
|
||||
fn new(info: PeerInfo, adapter: Arc<NetAdapter>) -> Peer {
|
||||
|
|
|
@ -41,9 +41,6 @@ pub struct Server {
|
|||
stop: Arc<AtomicBool>,
|
||||
}
|
||||
|
||||
unsafe impl Sync for Server {}
|
||||
unsafe impl Send for Server {}
|
||||
|
||||
// TODO TLS
|
||||
impl Server {
|
||||
/// Creates a new idle p2p server with no peers
|
||||
|
|
|
@ -36,9 +36,6 @@ pub struct LeafSet {
|
|||
bitmap_bak: Bitmap,
|
||||
}
|
||||
|
||||
unsafe impl Send for LeafSet {}
|
||||
unsafe impl Sync for LeafSet {}
|
||||
|
||||
impl LeafSet {
|
||||
/// Open the remove log file.
|
||||
/// The content of the file will be read in memory for fast checking.
|
||||
|
|
|
@ -51,9 +51,6 @@ pub struct PruneList {
|
|||
leaf_shift_cache: Vec<u64>,
|
||||
}
|
||||
|
||||
unsafe impl Send for PruneList {}
|
||||
unsafe impl Sync for PruneList {}
|
||||
|
||||
impl PruneList {
|
||||
/// Instantiate a new empty prune list
|
||||
pub fn new() -> PruneList {
|
||||
|
|
Loading…
Reference in a new issue