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:
@@ -262,24 +262,6 @@ bool RiaQDateTimeTools::lessThanOrEqualTo(const QDateTime& dt1, const QDateTime&
|
||||
return dt1.secsTo(dt2) >= 0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RiaQDateTimeTools::biggerThan(const QDateTime& dt1, const QDateTime& dt2)
|
||||
{
|
||||
// dt1 > dt2
|
||||
return dt1.secsTo(dt2) < 0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RiaQDateTimeTools::biggerThanOrEqualTo(const QDateTime& dt1, const QDateTime& dt2)
|
||||
{
|
||||
// dt1 >= dt2
|
||||
return dt1.secsTo(dt2) <= 0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -92,8 +92,6 @@ public:
|
||||
static bool equalTo(const QDateTime& dt1, const QDateTime& dt2);
|
||||
static bool lessThan(const QDateTime& dt1, const QDateTime& dt2);
|
||||
static bool lessThanOrEqualTo(const QDateTime& dt1, const QDateTime& dt2);
|
||||
static bool biggerThan(const QDateTime& dt1, const QDateTime& dt2);
|
||||
static bool biggerThanOrEqualTo(const QDateTime& dt1, const QDateTime& dt2);
|
||||
|
||||
static const DateTimeSpan timeSpan(DateTimePeriod period);
|
||||
static QDateTime truncateTime(const QDateTime& dt, DateTimePeriod period);
|
||||
|
||||
@@ -92,14 +92,6 @@ bool RiaStdStringTools::containsAlphabetic(const std::string& s)
|
||||
return std::find_if(s.begin(), s.end(), [](char c) { return isalpha(c); }) != s.end();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RiaStdStringTools::containsOnlyLettersAndDigits(const std::string& s)
|
||||
{
|
||||
return std::find_if(s.begin(), s.end(), [](char c) { return !isalpha(c) && !isdigit(c); }) == s.end();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -37,7 +37,6 @@ public:
|
||||
static int toInt(const std::string& s);
|
||||
static double toDouble(const std::string& s);
|
||||
static bool containsAlphabetic(const std::string& s);
|
||||
static bool containsOnlyLettersAndDigits(const std::string& s);
|
||||
static bool startsWithAlphabetic(const std::string& s);
|
||||
|
||||
static std::vector<std::string> splitStringBySpace(const std::string& s);
|
||||
|
||||
Reference in New Issue
Block a user