Merge pull request #111 from pmconrad/unused_code

Unused code
This commit is contained in:
Vikram Rajkumar 2015-06-30 10:46:53 -04:00
commit 33636a513e
4 changed files with 0 additions and 27 deletions

View file

@ -73,12 +73,6 @@ void database::adjust_balance(const account_object& account, asset delta )
adjust_balance( account.id, delta); adjust_balance( account.id, delta);
} }
// TODO: This method should be removed
void database::adjust_balance(const account_object* account, asset delta)
{
adjust_balance(*account, delta);
}
void database::adjust_core_in_orders( const account_object& acnt, asset delta ) void database::adjust_core_in_orders( const account_object& acnt, asset delta )
{ {
if( delta.asset_id == asset_id_type(0) && delta.amount != 0 ) if( delta.asset_id == asset_id_type(0) && delta.amount != 0 )

View file

@ -330,8 +330,6 @@ namespace graphene { namespace chain {
void adjust_balance(account_id_type account, asset delta); void adjust_balance(account_id_type account, asset delta);
/// This is an overloaded method. /// This is an overloaded method.
void adjust_balance(const account_object& account, asset delta); void adjust_balance(const account_object& account, asset delta);
/// This is an overloaded method.
void adjust_balance(const account_object* account, asset delta);
/** /**
* If delta.asset_id is a core asset, adjusts account statistics * If delta.asset_id is a core asset, adjusts account statistics

View file

@ -23,7 +23,6 @@
namespace graphene { namespace utilities { namespace graphene { namespace utilities {
std::string key_to_wif_single_hash(const fc::ecc::private_key& key);
std::string key_to_wif(const fc::ecc::private_key& key); std::string key_to_wif(const fc::ecc::private_key& key);
fc::optional<fc::ecc::private_key> wif_to_key( const std::string& wif_key ); fc::optional<fc::ecc::private_key> wif_to_key( const std::string& wif_key );

View file

@ -35,24 +35,6 @@ std::string key_to_wif(const fc::ecc::private_key& key)
return fc::to_base58(data, sizeof(data)); return fc::to_base58(data, sizeof(data));
} }
/**
* @deprecated - this is for backward compatibility of keys generated
*/
std::string key_to_wif_single_hash(const fc::ecc::private_key& key)
{
fc::sha256 secret = key.get_secret();
const size_t size_of_data_to_hash = sizeof(secret) + 1;
const size_t size_of_hash_bytes = 4;
char data[size_of_data_to_hash + size_of_hash_bytes];
data[0] = (char)0x80;
memcpy(&data[1], (char*)&secret, sizeof(secret));
fc::sha256 digest = fc::sha256::hash(data, size_of_data_to_hash);
digest = fc::sha256::hash(digest);
memcpy(data + size_of_data_to_hash, (char*)&digest, size_of_hash_bytes);
return fc::to_base58(data, sizeof(data));
}
fc::optional<fc::ecc::private_key> wif_to_key( const std::string& wif_key ) fc::optional<fc::ecc::private_key> wif_to_key( const std::string& wif_key )
{ {
std::vector<char> wif_bytes = fc::from_base58(wif_key); std::vector<char> wif_bytes = fc::from_base58(wif_key);