MCPcopy Create free account
hub / github.com/cryptonomex/graphene / remove

Method remove

libraries/chain/proposal_object.cpp:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void required_approval_index::remove( account_id_type a, proposal_id_type p )
67{
68 auto itr = _account_to_proposals.find(a);
69 if( itr != _account_to_proposals.end() )
70 {
71 itr->second.erase( p );
72 if( itr->second.empty() )
73 _account_to_proposals.erase( itr->first );
74 }
75}
76
77void required_approval_index::object_removed( const object& obj )
78{

Callers

nothing calls this directly

Calls 3

eraseMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected