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;