summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-05 13:55:53 +0200
committerMontel Laurent <[email protected]>2017-09-05 13:55:53 +0200
commit4e4c9bef0badb8dd36d01042930bb7ba1d23cbd1 (patch)
tree44d13a5cab3d52ad64cd260bc5697f65cca55681
parentaca10e4499e3c0101dfd1b6d9e1d5be0560574ae (diff)
REmove unused code
-rw-r--r--src/snippets/snippetsmodel.cpp9
-rw-r--r--src/snippets/snippetsmodel.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/src/snippets/snippetsmodel.cpp b/src/snippets/snippetsmodel.cpp
index 8715f74..384d78a 100644
--- a/src/snippets/snippetsmodel.cpp
+++ b/src/snippets/snippetsmodel.cpp
@@ -437,12 +437,3 @@ Qt::DropActions SnippetsModel::supportedDropActions() const
return Qt::CopyAction | Qt::MoveAction;
}
-QHash<int, QByteArray> SnippetsModel::roleNames() const
-{
- static QHash<int, QByteArray> names;
- if (names.isEmpty()) {
- names.insert(IsGroupRole, QByteArrayLiteral("isSnippetGroup"));
- }
-
- return names;
-}
diff --git a/src/snippets/snippetsmodel.h b/src/snippets/snippetsmodel.h
index e519969..4e8851a 100644
--- a/src/snippets/snippetsmodel.h
+++ b/src/snippets/snippetsmodel.h
@@ -61,7 +61,6 @@ public:
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override;
Qt::DropActions supportedDropActions() const override;
- QHash<int, QByteArray> roleNames() const override;
protected:
bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex()) override;