summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/command.cpp5
-rw-r--r--commands/command.h1
-rw-r--r--commands/command_edit.cpp22
-rw-r--r--commands/command_edit.h9
4 files changed, 0 insertions, 37 deletions
diff --git a/commands/command.cpp b/commands/command.cpp
index 47fc45b90..fe55b20d6 100644
--- a/commands/command.cpp
+++ b/commands/command.cpp
@@ -168,11 +168,6 @@ int editMode(int index, int newValue, bool currentDiveOnly)
return execute_edit(new EditMode(index, newValue, currentDiveOnly));
}
-int editNumber(int newValue, bool currentDiveOnly)
-{
- return execute_edit(new EditNumber(newValue, currentDiveOnly));
-}
-
int editSuit(const QString &newValue, bool currentDiveOnly)
{
return execute_edit(new EditSuit(newValue, currentDiveOnly));
diff --git a/commands/command.h b/commands/command.h
index f08249e0d..5663da157 100644
--- a/commands/command.h
+++ b/commands/command.h
@@ -66,7 +66,6 @@ void purgeUnusedDiveSites();
int editNotes(const QString &newValue, bool currentDiveOnly);
int editSuit(const QString &newValue, bool currentDiveOnly);
int editMode(int index, int newValue, bool currentDiveOnly);
-int editNumber(int newValue, bool currentDiveOnly);
int editRating(int newValue, bool currentDiveOnly);
int editVisibility(int newValue, bool currentDiveOnly);
int editWaveSize(int newValue, bool currentDiveOnly);
diff --git a/commands/command_edit.cpp b/commands/command_edit.cpp
index 32c478845..7fd56e0d2 100644
--- a/commands/command_edit.cpp
+++ b/commands/command_edit.cpp
@@ -574,28 +574,6 @@ DiveField EditMode::fieldId() const
return DiveField::MODE;
}
-// ***** Number *****
-void EditNumber::set(struct dive *d, int number) const
-{
- d->number = number;
-}
-
-int EditNumber::data(struct dive *d) const
-{
- return d->number;
-}
-
-QString EditNumber::fieldName() const
-{
- return tr("number");
-}
-
-DiveField EditNumber::fieldId() const
-{
- return DiveField::NR;
-}
-
-
// ***** Tag based commands *****
EditTagsBase::EditTagsBase(const QStringList &newListIn, bool currentDiveOnly) :
EditDivesBase(currentDiveOnly),
diff --git a/commands/command_edit.h b/commands/command_edit.h
index 6a5b8230f..101c8b79b 100644
--- a/commands/command_edit.h
+++ b/commands/command_edit.h
@@ -222,15 +222,6 @@ public:
DiveField fieldId() const override;
};
-class EditNumber : public EditBase<int> {
-public:
- using EditBase<int>::EditBase; // Use constructor of base class.
- void set(struct dive *d, int number) const override;
- int data(struct dive *d) const override;
- QString fieldName() const override;
- DiveField fieldId() const override;
-};
-
// Fields that work with tag-lists (tags, buddies, divemasters) work differently and therefore
// have their own base class. In this case, it's not a template, as all these lists are base
// on strings.