mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3512 System : Remove unused functions
This commit is contained in:
@@ -1234,15 +1234,6 @@ void RiaApplication::setActiveReservoirView(Rim3dView* rv)
|
|||||||
RiuDockWidgetTools::instance()->changeDockWidgetVisibilityBasedOnView(rv);
|
RiuDockWidgetTools::instance()->changeDockWidgetVisibilityBasedOnView(rv);
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
void RiaApplication::setUseShaders(bool enable)
|
|
||||||
{
|
|
||||||
m_preferences->useShaders = enable;
|
|
||||||
caf::PdmSettings::writeFieldsToApplicationStore(m_preferences);
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@@ -1266,16 +1257,6 @@ RiaApplication::RINavigationPolicy RiaApplication::navigationPolicy() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
void RiaApplication::setShowPerformanceInfo(bool enable)
|
|
||||||
{
|
|
||||||
m_preferences->showHud = enable;
|
|
||||||
caf::PdmSettings::writeFieldsToApplicationStore(m_preferences);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -145,10 +145,8 @@ public:
|
|||||||
|
|
||||||
static const char* getVersionStringApp(bool includeCrtInfo);
|
static const char* getVersionStringApp(bool includeCrtInfo);
|
||||||
|
|
||||||
void setUseShaders(bool enable);
|
|
||||||
bool useShaders() const;
|
bool useShaders() const;
|
||||||
|
|
||||||
void setShowPerformanceInfo(bool enable);
|
|
||||||
bool showPerformanceInfo() const;
|
bool showPerformanceInfo() const;
|
||||||
|
|
||||||
RINavigationPolicy navigationPolicy() const;
|
RINavigationPolicy navigationPolicy() const;
|
||||||
|
|||||||
@@ -96,39 +96,6 @@ QString RiaFilePathTools::canonicalPath(const QString& path)
|
|||||||
return QDir(path).absolutePath();
|
return QDir(path).absolutePath();
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
QString RiaFilePathTools::commonRootPath(const QStringList& paths)
|
|
||||||
{
|
|
||||||
if (paths.size() < 2) return "";
|
|
||||||
|
|
||||||
int i = 0;
|
|
||||||
int iDir = 0;
|
|
||||||
for(i = 0; ; i++)
|
|
||||||
{
|
|
||||||
bool isCommon = true;
|
|
||||||
QChar ch = i < paths.front().size() ? paths.front()[i] : 0;
|
|
||||||
|
|
||||||
// Remember last directory separator
|
|
||||||
if (i > 0 && (ch == '/' || ch == '\\')) iDir = i;
|
|
||||||
|
|
||||||
// Compare characters at position i
|
|
||||||
for (const QString& path : paths)
|
|
||||||
{
|
|
||||||
if (ch == 0 || path[i] != ch)
|
|
||||||
{
|
|
||||||
isCommon = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isCommon) break;
|
|
||||||
}
|
|
||||||
|
|
||||||
return paths.front().left(iDir + 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -39,6 +39,5 @@ public:
|
|||||||
static QString relativePath(const QString& rootDir, const QString& dir);
|
static QString relativePath(const QString& rootDir, const QString& dir);
|
||||||
static bool equalPaths(const QString& path1, const QString& path2);
|
static bool equalPaths(const QString& path1, const QString& path2);
|
||||||
static QString canonicalPath(const QString& path);
|
static QString canonicalPath(const QString& path);
|
||||||
static QString commonRootPath(const QStringList& paths);
|
|
||||||
static std::pair<QString, QString> toFolderAndFileName(const QString& absFileName);
|
static std::pair<QString, QString> toFolderAndFileName(const QString& absFileName);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user