From ed9116e5451db8d0368719acc4a9695e2c8a58b6 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Tue, 9 Nov 2021 00:32:41 +0200 Subject: [PATCH] intel/ds: drop unused constructors Reviewed-by: Antonio Caggiano Part-of: --- 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 find_query_by_name(const std::string &name) const;