Skip to content

Commit dcc4761

Browse files
Andrianto Lieheifner
Andrianto Lie
authored andcommitted
Remove commented code
1 parent da55f4c commit dcc4761

File tree

4 files changed

+1
-30
lines changed

4 files changed

+1
-30
lines changed

libraries/testing/tester.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,6 @@ namespace eosio { namespace testing {
429429
const auto& acnt = control->get_account(code);
430430
auto abi = acnt.get_abi();
431431
chain::abi_serializer abis(abi, abi_serializer_max_time);
432-
// auto a = control->get_account(code).get_abi();
433432

434433
string action_type_name = abis.get_action_type(acttype);
435434
FC_ASSERT( action_type_name != string(), "unknown action type ${a}", ("a",acttype) );

plugins/chain_plugin/chain_plugin.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,6 @@ void read_write::push_transaction(const read_write::push_transaction_params& par
10631063
try {
10641064
fc::variant pretty_output;
10651065
pretty_output = db.to_variant_with_abi(*trx_trace_ptr, abi_serializer_max_time);
1066-
//abi_serializer::to_variant(*trx_trace_ptr, pretty_output, resolver);
10671066

10681067
chain::transaction_id_type id = trx_trace_ptr->id;
10691068
next(read_write::push_transaction_results{id, pretty_output});
@@ -1190,11 +1189,10 @@ read_only::get_account_results read_only::get_account( const get_account_params&
11901189
}
11911190

11921191
const auto& code_account = db.db().get<account_object,by_name>( N(eosio) );
1193-
//const abi_def abi = get_abi( db, N(eosio) );
1192+
11941193
abi_def abi;
11951194
if( abi_serializer::to_abi(code_account.abi, abi) ) {
11961195
abi_serializer abis( abi, abi_serializer_max_time );
1197-
//get_table_rows_ex<key_value_index, by_scope_primary>(p,abi);
11981196

11991197
const auto token_code = N(eosio.token);
12001198

unittests/eosio_system_tester.hpp

-14
Original file line numberDiff line numberDiff line change
@@ -429,20 +429,6 @@ class eosio_system_tester : public TESTER {
429429
return msig_abi_ser;
430430
}
431431

432-
//helper function
433-
/*
434-
action_result push_action_msig( const account_name& signer, const action_name &name, const variant_object &data ) {
435-
string action_type_name = msig_abi_ser.get_action_type(name);
436-
437-
action act;
438-
act.account = N(eosio.msig);
439-
act.name = name;
440-
act.data = msig_abi_ser.variant_to_binary( action_type_name, data, abi_serializer_max_time );
441-
442-
return base_tester::push_action( std::move(act), signer );
443-
};
444-
*/
445-
446432
vector<name> active_and_vote_producers() {
447433
//stake more than 15% of total EOS supply to activate chain
448434
transfer( "eosio", "alice1111111", core_from_string("650000000.0000"), "eosio" );

unittests/multisig_tests.cpp

-12
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,6 @@ class eosio_msig_tester : public tester {
144144
produce_block();
145145
BOOST_REQUIRE_EQUAL( true, chain_has_transaction(trace->id) );
146146
return trace;
147-
148-
/*
149-
string action_type_name = abi_ser.get_action_type(name);
150-
151-
action act;
152-
act.account = N(eosio.msig);
153-
act.name = name;
154-
act.data = abi_ser.variant_to_binary( action_type_name, data, abi_serializer_max_time );
155-
//std::cout << "test:\n" << fc::to_hex(act.data.data(), act.data.size()) << " size = " << act.data.size() << std::endl;
156-
157-
return base_tester::push_action( std::move(act), auth ? uint64_t(signer) : 0 );
158-
*/
159147
}
160148

161149
transaction reqauth( account_name from, const vector<permission_level>& auths, const fc::microseconds& max_serialization_time );

0 commit comments

Comments
 (0)