From 8bcf844d95cdf9f69bbf02da49d8d3282eb40cfb Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Wed, 7 Oct 2009 12:17:25 +0200 Subject: Get rid of some superfluous checks in QScriptString::operator==() Reviewed-by: Olivier Goffart --- src/script/api/qscriptstring.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/script/api/qscriptstring.cpp b/src/script/api/qscriptstring.cpp index c2362da..2fb157f 100644 --- a/src/script/api/qscriptstring.cpp +++ b/src/script/api/qscriptstring.cpp @@ -150,14 +150,8 @@ bool QScriptString::isValid() const bool QScriptString::operator==(const QScriptString &other) const { Q_D(const QScriptString); - if (d == other.d_func()) - return true; if (!d || !other.d_func()) return d == other.d_func(); - if (d->engine != other.d_func()->engine) - return false; - if (!d->engine) - return true; return d->identifier == other.d_func()->identifier; } -- cgit v0.12