cleaup: remove device::operator==()

The last user was removed when including devices in the undo
system.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2022-01-02 14:35:22 +01:00 committed by Dirk Hohndel
parent c893d19ea4
commit 66896ad7d7
2 changed files with 0 additions and 7 deletions

View file

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

View file

@ -67,7 +67,6 @@ extern char *fp_get_data(struct fingerprint_table *table, unsigned int i);
#include <string>
#include <vector>
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;