diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/rational.cpp | 8 | ||||
-rw-r--r-- | common/rational.h | 3 |
2 files changed, 0 insertions, 11 deletions
diff --git a/common/rational.cpp b/common/rational.cpp index 38aae94def..999dc7feb8 100644 --- a/common/rational.cpp +++ b/common/rational.cpp @@ -258,14 +258,6 @@ frac_t Rational::toFrac() const { return (_num * FRAC_ONE) / _denom; } -Rational::operator int() const { - return toInt(); -} - -Rational::operator double() const { - return toDouble(); -} - const Rational operator+(int left, const Rational &right) { Rational tmp = right; tmp += left; diff --git a/common/rational.h b/common/rational.h index 5826839ac6..bee09d8ddb 100644 --- a/common/rational.h +++ b/common/rational.h @@ -76,9 +76,6 @@ public: bool operator>=(int right) const; bool operator<=(int right) const; - operator int() const; - operator double() const; - void invert(); Rational getInverse() const; |