REmove unused code

wilder
Montel Laurent 9 years ago
parent aca10e4499
commit 4e4c9bef0b
  1. 9
      src/snippets/snippetsmodel.cpp
  2. 1
      src/snippets/snippetsmodel.h

@ -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;
}

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

Loading…
Cancel
Save