Merge pull request #6957 from heinrich5991/pr_ddnet_rm_copyassign_ijob

Delete fishy-looking assignment operator/copy constructor of `IJob`
This commit is contained in:
Edgar 2023-08-01 08:22:26 +00:00 committed by GitHub
commit 862929ebce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 13 deletions

View file

@ -9,17 +9,6 @@ IJob::IJob() :
{
}
IJob::IJob(const IJob &Other) :
m_Status(STATE_PENDING)
{
}
IJob &IJob::operator=(const IJob &Other)
{
m_Status = STATE_PENDING;
return *this;
}
IJob::~IJob() = default;
int IJob::Status()

View file

@ -22,8 +22,8 @@ private:
public:
IJob();
IJob(const IJob &Other);
IJob &operator=(const IJob &Other);
IJob(const IJob &Other) = delete;
IJob &operator=(const IJob &Other) = delete;
virtual ~IJob();
int Status();