intel/ds: drop unused constructors

Reviewed-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13831>
This commit is contained in:
Lionel Landwerlin 2021-11-09 00:32:41 +02:00 committed by Marge Bot
parent 215dbfd131
commit ed9116e545
2 changed files with 0 additions and 35 deletions

View file

@ -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();

View file

@ -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;