1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

Remove some redundant code

Potential fix for future warnings.
This commit is contained in:
Nekotekina 2021-03-07 18:48:43 +03:00
parent 5dfe3f414d
commit 5bdd1cf837
3 changed files with 2 additions and 5 deletions

View File

@ -65,7 +65,6 @@ namespace utils
public:
// Constructors
constexpr address_range() = default;
constexpr address_range(const address_range &other) : start(other.start), end(other.end) {}
static constexpr address_range start_length(u32 _start, u32 _length)
{

View File

@ -199,8 +199,6 @@ namespace stx
return value();
}
constexpr se_t& operator=(const se_t&) = default;
constexpr se_t& operator=(type value) noexcept
{
m_data = to_data(value);

View File

@ -533,7 +533,7 @@ constexpr inline struct umax_helper
#if __cpp_impl_three_way_comparison >= 201711 && !__INTELLISENSE__
#else
template <typename T>
friend constexpr std::enable_if_t<std::is_unsigned_v<simple_t<T>>, bool> operator==(const T& lhs, const umax_helper& rhs)
friend constexpr std::enable_if_t<std::is_unsigned_v<simple_t<T>>, bool> operator==(const T& lhs, const umax_helper&)
{
return lhs == static_cast<simple_t<T>>(-1);
}
@ -548,7 +548,7 @@ constexpr inline struct umax_helper
}
template <typename T>
friend constexpr std::enable_if_t<std::is_unsigned_v<simple_t<T>>, bool> operator!=(const T& lhs, const umax_helper& rhs)
friend constexpr std::enable_if_t<std::is_unsigned_v<simple_t<T>>, bool> operator!=(const T& lhs, const umax_helper&)
{
return lhs != static_cast<simple_t<T>>(-1);
}