remove more 'using namespace' statements from headers

This commit is contained in:
jeffro256 2023-07-18 22:46:43 -05:00
parent 00fd416a99
commit 192d87cd24
No known key found for this signature in database
GPG key ID: 6F79797A6E392442
5 changed files with 15 additions and 30 deletions

View file

@ -38,6 +38,7 @@
#define MONERO_DEFAULT_LOG_CATEGORY "bcutil"
namespace po = boost::program_options;
using namespace cryptonote;
using namespace epee;
int main(int argc, char* argv[])

View file

@ -50,10 +50,6 @@
#include "blockchain_utilities.h"
using namespace cryptonote;
class BlocksdatFile
{
public:
@ -63,7 +59,7 @@ public:
protected:
Blockchain* m_blockchain_storage;
cryptonote::Blockchain* m_blockchain_storage;
std::ofstream * m_raw_data_file;

View file

@ -48,10 +48,6 @@
#include "blockchain_utilities.h"
using namespace cryptonote;
class BootstrapFile
{
public:
@ -66,9 +62,9 @@ public:
protected:
Blockchain* m_blockchain_storage;
cryptonote::Blockchain* m_blockchain_storage;
tx_memory_pool* m_tx_pool;
cryptonote::tx_memory_pool* m_tx_pool;
typedef std::vector<char> buffer_type;
std::ofstream * m_raw_data_file;
buffer_type m_buffer;
@ -78,7 +74,7 @@ protected:
bool open_writer(const boost::filesystem::path& file_path, uint64_t start_block, uint64_t stop_block);
bool initialize_file(uint64_t start_block, uint64_t stop_block);
bool close();
void write_block(block& block);
void write_block(cryptonote::block& block);
void flush_chunk();
private:

View file

@ -1167,13 +1167,6 @@ namespace cryptonote
m_sync_download_objects_size += size;
MDEBUG(context << " downloaded " << size << " bytes worth of blocks");
/*using namespace boost::chrono;
auto point = steady_clock::now();
auto time_from_epoh = point.time_since_epoch();
auto sec = duration_cast< seconds >( time_from_epoh ).count();*/
//epee::net_utils::network_throttle_manager::get_global_throttle_inreq().logger_handle_net("log/dr-monero/net/req-all.data", sec, get_avg_block_size());
if(arg.blocks.empty())
{
LOG_ERROR_CCONTEXT("sent wrong NOTIFY_HAVE_OBJECTS: no blocks");