diff options
author | abcd <qt-info@nokia.com> | 2011-09-12 16:14:32 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-23 05:32:32 +0200 |
commit | 633fdc73289157e0b7cbfaef3a3d1aba1a1472e7 (patch) | |
tree | 0e7d61e765d68bd2d04d9a0c8869bf5d78ab8ed7 /src/location/places | |
parent | 5841ce6aeff5e01febc0d44b0eea0b371fb19ed8 (diff) | |
download | qtlocation-633fdc73289157e0b7cbfaef3a3d1aba1a1472e7.tar.gz |
Remove MatchType
The MatchType is not provided by the REST API
Change-Id: If1149b1e0b934dde90468dacaabe82ee11995295
Reviewed-on: http://codereview.qt-project.org/5211
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'src/location/places')
-rw-r--r-- | src/location/places/qplacesearchresult.cpp | 19 | ||||
-rw-r--r-- | src/location/places/qplacesearchresult.h | 9 | ||||
-rw-r--r-- | src/location/places/qplacesearchresult_p.h | 1 |
3 files changed, 0 insertions, 29 deletions
diff --git a/src/location/places/qplacesearchresult.cpp b/src/location/places/qplacesearchresult.cpp index aa2d2a23..f72ba798 100644 --- a/src/location/places/qplacesearchresult.cpp +++ b/src/location/places/qplacesearchresult.cpp @@ -49,7 +49,6 @@ QPlaceSearchResultPrivate::QPlaceSearchResultPrivate() relevance(0), distance(0), heading(0), - matchType(QPlaceSearchResult::UndefinedLocationMatch), type(QPlaceSearchResult::UnknownSearchResult) { } @@ -61,7 +60,6 @@ QPlaceSearchResultPrivate::QPlaceSearchResultPrivate(const QPlaceSearchResultPri this->relevance = other.relevance; this->distance = other.distance; this->heading = other.heading; - this->matchType = other.matchType; this->type = other.type; this->place = other.place; this->dymString = other.dymString; @@ -78,7 +76,6 @@ bool QPlaceSearchResultPrivate::operator==(const QPlaceSearchResultPrivate &othe && this->relevance == other.relevance && this->distance == other.distance && this->heading == other.heading - && this->matchType == other.matchType && this->type == other.type && this->place == other.place && this->dymString == other.dymString @@ -180,22 +177,6 @@ void QPlaceSearchResult::setHeading(const qreal &heading) } /*! - Returns location match type. -*/ -QPlaceSearchResult::LocationMatchType QPlaceSearchResult::matchType() const -{ - return d->matchType; -} - -/*! - Sets the location \a matchType. -*/ -void QPlaceSearchResult::setMatchType(const QPlaceSearchResult::LocationMatchType &matchType) -{ - d->matchType = matchType; -} - -/*! Returns additional data. */ QVariantHash QPlaceSearchResult::additionalData() const diff --git a/src/location/places/qplacesearchresult.h b/src/location/places/qplacesearchresult.h index 5bc9f8ad..d2bd44d1 100644 --- a/src/location/places/qplacesearchresult.h +++ b/src/location/places/qplacesearchresult.h @@ -68,12 +68,6 @@ public: return !(other == *this); } - enum LocationMatchType { - PointAddress, - Interpolated, - UndefinedLocationMatch - }; - enum SearchResultType { Place, DidYouMeanSuggestion, @@ -89,9 +83,6 @@ public: qreal heading() const; void setHeading(const qreal &heading); - LocationMatchType matchType() const; - void setMatchType(const LocationMatchType &matchType); - QVariantHash additionalData() const; void setAdditionalData(const QVariantHash &data); diff --git a/src/location/places/qplacesearchresult_p.h b/src/location/places/qplacesearchresult_p.h index 106c2fc7..9fc5cc42 100644 --- a/src/location/places/qplacesearchresult_p.h +++ b/src/location/places/qplacesearchresult_p.h @@ -61,7 +61,6 @@ public: qreal relevance; qreal distance; qreal heading; - QPlaceSearchResult::LocationMatchType matchType; QVariantHash additionalData; QPlaceSearchResult::SearchResultType type; QPlace place; |