core: remove unused functions
This commit is contained in:
@@ -1412,25 +1412,6 @@ int Core::CountFilesInFileList(const QFileInfoList &filenames)
|
|||||||
return file_count;
|
return file_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString GetRenderModePreferencePrefix(RenderMode::Mode mode, const QString &preference) {
|
|
||||||
QString key;
|
|
||||||
|
|
||||||
key.append((mode == RenderMode::kOffline) ? QStringLiteral("Offline") : QStringLiteral("Online"));
|
|
||||||
key.append(preference);
|
|
||||||
|
|
||||||
return key;
|
|
||||||
}
|
|
||||||
|
|
||||||
QVariant Core::GetPreferenceForRenderMode(RenderMode::Mode mode, const QString &preference)
|
|
||||||
{
|
|
||||||
return OLIVE_CONFIG_STR(GetRenderModePreferencePrefix(mode, preference));
|
|
||||||
}
|
|
||||||
|
|
||||||
void Core::SetPreferenceForRenderMode(RenderMode::Mode mode, const QString &preference, const QVariant &value)
|
|
||||||
{
|
|
||||||
OLIVE_CONFIG_STR(GetRenderModePreferencePrefix(mode, preference)) = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Core::LabelNodes(const QVector<Node *> &nodes, MultiUndoCommand *parent)
|
bool Core::LabelNodes(const QVector<Node *> &nodes, MultiUndoCommand *parent)
|
||||||
{
|
{
|
||||||
if (nodes.isEmpty()) {
|
if (nodes.isEmpty()) {
|
||||||
|
|||||||
@@ -247,9 +247,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
static int CountFilesInFileList(const QFileInfoList &filenames);
|
static int CountFilesInFileList(const QFileInfoList &filenames);
|
||||||
|
|
||||||
static QVariant GetPreferenceForRenderMode(RenderMode::Mode mode, const QString& preference);
|
|
||||||
static void SetPreferenceForRenderMode(RenderMode::Mode mode, const QString& preference, const QVariant& value);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Show a dialog to the user to rename a set of nodes
|
* @brief Show a dialog to the user to rename a set of nodes
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user