Removing unused code
This commit is contained in:
@@ -25,16 +25,3 @@ pub struct Transaction {
|
||||
to: String,
|
||||
amount: f64,
|
||||
}
|
||||
|
||||
// impl TransactionList {
|
||||
// fn create(&mut self, keys: &Ed25519KeyPair) -> bft_json_crdt::json_crdt::SignedOp {
|
||||
// // generate a placeholder transaction
|
||||
// let transaction = _fake_transaction(keys.public().to_string());
|
||||
|
||||
// // next job is to keep adding to this guy
|
||||
// let last: &Op<Transaction>;
|
||||
// last = self.list.ops.last().expect("couldn't find last op");
|
||||
// let signed_op = self.list.insert(last.id, transaction.clone()).sign(&keys);
|
||||
// signed_op
|
||||
// }
|
||||
// }
|
||||
|
||||
@@ -33,8 +33,6 @@ fn test_valid_updates() {
|
||||
.insert(_b.id(), val_c.clone())
|
||||
.sign(&keypair1);
|
||||
|
||||
println!("CRDT view is: {:?}", crdt1.doc.list.view());
|
||||
|
||||
let keypair2 = make_keypair();
|
||||
let mut crdt2 = BaseCrdt::<TransactionList>::new(&keypair2);
|
||||
crdt2.apply(_a.clone());
|
||||
|
||||
Reference in New Issue
Block a user