Mesa (main): intel/ds: drop unused constructors

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Nov 22 12:17:08 UTC 2021


Module: Mesa
Branch: main
Commit: ed9116e5451db8d0368719acc4a9695e2c8a58b6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed9116e5451db8d0368719acc4a9695e2c8a58b6

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Tue Nov  9 00:32:41 2021 +0200

intel/ds: drop unused constructors

Reviewed-by: Antonio Caggiano <antonio.caggiano at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13831>

---

 src/intel/ds/intel_pps_perf.cc | 28 ----------------------------
 src/intel/ds/intel_pps_perf.h  |  7 -------
 2 files changed, 35 deletions(-)

diff --git a/src/intel/ds/intel_pps_perf.cc b/src/intel/ds/intel_pps_perf.cc
index 684979d40a3..7053e89bead 100644
--- a/src/intel/ds/intel_pps_perf.cc
+++ b/src/intel/ds/intel_pps_perf.cc
@@ -56,34 +56,6 @@ IntelPerf::IntelPerf(const int drm_fd)
    }
 }
 
-IntelPerf::IntelPerf(IntelPerf &&o)
-   : drm_fd {o.drm_fd}
-   , ralloc_ctx {o.ralloc_ctx}
-   , ralloc_cfg {o.ralloc_cfg}
-   , ctx {o.ctx}
-   , cfg {o.cfg}
-   , devinfo {std::move(o.devinfo)}
-   , query {std::move(o.query)}
-{
-   o.drm_fd = -1;
-   o.ralloc_ctx = nullptr;
-   o.ralloc_cfg = nullptr;
-   o.ctx = nullptr;
-   o.cfg = nullptr;
-}
-
-IntelPerf &IntelPerf::operator=(IntelPerf &&o) noexcept
-{
-   std::swap(drm_fd, o.drm_fd);
-   std::swap(ralloc_ctx, o.ralloc_ctx);
-   std::swap(ralloc_cfg, o.ralloc_cfg);
-   std::swap(ctx, o.ctx);
-   std::swap(cfg, o.cfg);
-   std::swap(devinfo, o.devinfo);
-   std::swap(query, o.query);
-   return *this;
-}
-
 IntelPerf::~IntelPerf()
 {
    close();
diff --git a/src/intel/ds/intel_pps_perf.h b/src/intel/ds/intel_pps_perf.h
index 14f4a343d3c..2a6d93335a2 100644
--- a/src/intel/ds/intel_pps_perf.h
+++ b/src/intel/ds/intel_pps_perf.h
@@ -23,13 +23,6 @@ class IntelPerf
 {
    public:
    IntelPerf(int drm_fd);
-
-   IntelPerf(const IntelPerf &) = delete;
-   IntelPerf &operator=(const IntelPerf &) = delete;
-
-   IntelPerf(IntelPerf &&);
-   IntelPerf &operator=(IntelPerf &&) noexcept;
-
    ~IntelPerf();
 
    std::optional<struct intel_perf_query_info> find_query_by_name(const std::string &name) const;



More information about the mesa-commit mailing list