mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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:
parent
215dbfd131
commit
ed9116e545
2 changed files with 0 additions and 35 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue