From 66896ad7d71a6a704c6edab56417ecec34551bbf Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 2 Jan 2022 14:35:22 +0100 Subject: [PATCH] cleaup: remove device::operator==() The last user was removed when including devices in the undo system. Signed-off-by: Berthold Stoeger --- core/device.cpp | 6 ------ core/device.h | 1 - 2 files changed, 7 deletions(-) diff --git a/core/device.cpp b/core/device.cpp index 4d2220ff9..dfb3537e6 100644 --- a/core/device.cpp +++ b/core/device.cpp @@ -12,12 +12,6 @@ struct device_table device_table; struct fingerprint_table fingerprint_table; -bool device::operator==(const device &a) const -{ - return model == a.model && - serialNumber == a.serialNumber; -} - static bool same_device(const device &dev1, const device &dev2) { return strcmp(dev1.model.c_str(), dev2.model.c_str()) == 0 && diff --git a/core/device.h b/core/device.h index 720f0db5c..c51164444 100644 --- a/core/device.h +++ b/core/device.h @@ -67,7 +67,6 @@ extern char *fp_get_data(struct fingerprint_table *table, unsigned int i); #include #include struct device { - bool operator==(const device &a) const; // TODO: remove, once devices are integrated in the undo system bool operator<(const device &a) const; void showchanges(const std::string &n) const; std::string model;