Skip to content

Commit

Permalink
[refactor] Use ScAddrHashFunc without argument
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaZotov committed Jul 25, 2024
1 parent d62b5ca commit b6dd2da
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ using CommandParameters = std::map<std::string, std::vector<std::string>>;
class ScComponentManagerCommand
{
public:
using ScAddrUnorderedSet = std::unordered_set<ScAddr, ScAddrHashFunc<sc_uint32>>;
virtual ScAddrUnorderedSet Execute(ScMemoryContext * context, ScAddr const & actionAddr) = 0;

virtual ~ScComponentManagerCommand() = default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

namespace common_utils
{
using ScAddrUnorderedSet = std::unordered_set<ScAddr, ScAddrHashFunc<sc_uint32>>;

class CommonUtils
{
public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class ScComponentManagerInitAgent : public ScAgent
SC_CLASS(Agent, Event(scAgentsCommon::CoreKeynodes::action_initiated, ScEvent::Type::AddOutputEdge))
SC_GENERATED_BODY()

using ScAddrUnorderedSet = std::unordered_set<ScAddr, ScAddrHashFunc<sc_uint32>>;

private:
bool CheckAction(ScAddr const & actionAddr);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class ScComponentManagerInstallAgent : public ScAgent
SC_CLASS(Agent, Event(scAgentsCommon::CoreKeynodes::action_initiated, ScEvent::Type::AddOutputEdge))
SC_GENERATED_BODY()

using ScAddrUnorderedSet = std::unordered_set<ScAddr, ScAddrHashFunc<sc_uint32>>;

private:
bool CheckAction(ScAddr const & actionAddr);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class ScComponentManagerSearchAgent : public ScAgent
public:
SC_CLASS(Agent, Event(scAgentsCommon::CoreKeynodes::action_initiated, ScEvent::Type::AddOutputEdge))
SC_GENERATED_BODY()
using ScAddrUnorderedSet = std::unordered_set<ScAddr, ScAddrHashFunc<sc_uint32>>;

private:
static bool CheckAction(ScMemoryContext & m_memoryCtx, ScAddr const & actionAddr, ScAddr const & actionAddrClass);
Expand Down

0 comments on commit b6dd2da

Please sign in to comment.