From af0584ea53cea882dfc3555fd014f7dbed483743 Mon Sep 17 00:00:00 2001 From: Zaggy1024 Date: Sun, 9 Oct 2022 05:57:07 -0500 Subject: [PATCH] LibVideo: Remove MV class's copy assignment overload This was unnecessary, as the implicit one works correctly. --- Userland/Libraries/LibVideo/VP9/MV.cpp | 9 --------- Userland/Libraries/LibVideo/VP9/MV.h | 1 - 2 files changed, 10 deletions(-) diff --git a/Userland/Libraries/LibVideo/VP9/MV.cpp b/Userland/Libraries/LibVideo/VP9/MV.cpp index ac01e03e9c..a715c29f53 100644 --- a/Userland/Libraries/LibVideo/VP9/MV.cpp +++ b/Userland/Libraries/LibVideo/VP9/MV.cpp @@ -14,15 +14,6 @@ MV::MV(u32 row, u32 col) { } -MV& MV::operator=(MV const& other) -{ - if (this == &other) - return *this; - m_row = other.row(); - m_col = other.col(); - return *this; -} - MV& MV::operator=(i32 value) { m_row = value; diff --git a/Userland/Libraries/LibVideo/VP9/MV.h b/Userland/Libraries/LibVideo/VP9/MV.h index 7baa061247..718e64447f 100644 --- a/Userland/Libraries/LibVideo/VP9/MV.h +++ b/Userland/Libraries/LibVideo/VP9/MV.h @@ -20,7 +20,6 @@ public: u32 col() const { return m_col; } void set_col(u32 col) { m_col = col; } - MV& operator=(MV const& other); MV& operator=(i32 value); MV operator+(MV const& other) const;