mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-27 10:50:10 +03:00
Feature #687: Remove unneeded operators in AclRule
This commit is contained in:
parent
303db36d95
commit
773f5f0881
@ -39,15 +39,6 @@ public:
|
||||
user(_user), resource(_resource), rights(_rights)
|
||||
{};
|
||||
|
||||
AclRule& operator=(AclRule const& o)
|
||||
{
|
||||
user = o.user;
|
||||
resource = o.resource;
|
||||
rights = o.rights;
|
||||
|
||||
return *this;
|
||||
};
|
||||
|
||||
bool operator ==(const AclRule& other) const
|
||||
{
|
||||
return (user == other.user &&
|
||||
@ -55,16 +46,6 @@ public:
|
||||
rights == other.rights);
|
||||
};
|
||||
|
||||
bool operator!=(const AclRule& other) const
|
||||
{
|
||||
return !(*this == other);
|
||||
};
|
||||
|
||||
bool operator <(const AclRule& other) const
|
||||
{
|
||||
return user < other.user;
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns a human readable string for this rule
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user