Removing unused parameter.
This commit is contained in:
parent
afc6ff322c
commit
a1f628b7d0
3 changed files with 4 additions and 4 deletions
|
@ -706,7 +706,7 @@ rai::opencl_work::~opencl_work ()
|
|||
}
|
||||
}
|
||||
|
||||
boost::optional <uint64_t> rai::opencl_work::generate_work (rai::work_pool & pool_a, rai::uint256_union const & root_a)
|
||||
boost::optional <uint64_t> rai::opencl_work::generate_work (rai::uint256_union const & root_a)
|
||||
{
|
||||
std::lock_guard <std::mutex> lock (mutex);
|
||||
bool error (false);
|
||||
|
|
|
@ -49,7 +49,7 @@ class opencl_work
|
|||
public:
|
||||
opencl_work (bool &, rai::opencl_config const &, rai::opencl_environment &, rai::logging &);
|
||||
~opencl_work ();
|
||||
boost::optional<uint64_t> generate_work (rai::work_pool &, rai::uint256_union const &);
|
||||
boost::optional<uint64_t> generate_work (rai::uint256_union const &);
|
||||
static std::unique_ptr <opencl_work> create (bool, rai::opencl_config const &, rai::logging &);
|
||||
rai::opencl_config const & config;
|
||||
std::mutex mutex;
|
||||
|
@ -63,4 +63,4 @@ public:
|
|||
rai::xorshift1024star rand;
|
||||
rai::logging & logging;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -158,7 +158,7 @@ void rai::work_pool::generate (rai::uint256_union const & root_a, std::function
|
|||
boost::optional <uint64_t> result;
|
||||
if (opencl != nullptr)
|
||||
{
|
||||
result = opencl->generate_work (*this, root_a);
|
||||
result = opencl->generate_work (root_a);
|
||||
}
|
||||
if (!result)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue