diff options
author | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-12 19:07:36 +0000 |
---|---|---|
committer | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-12 19:07:36 +0000 |
commit | d2cf05e9d2536dafb6f07c90c4ff2a2ac94f85ec (patch) | |
tree | 0cb25ce2717b6d2f8bb5000e08fc447d0dd0f80d /chrome/browser/history | |
parent | 8cab8a839a55e1fb479336af673a49b5056d6862 (diff) | |
download | chromium_src-d2cf05e9d2536dafb6f07c90c4ff2a2ac94f85ec.zip chromium_src-d2cf05e9d2536dafb6f07c90c4ff2a2ac94f85ec.tar.gz chromium_src-d2cf05e9d2536dafb6f07c90c4ff2a2ac94f85ec.tar.bz2 |
Coverity: Remove dead code.
CID=104183
BUG=none
TEST=none
TBR=sky@chromium.org,mpearson@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10540082
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141698 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history')
-rw-r--r-- | chrome/browser/history/scored_history_match.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/browser/history/scored_history_match.cc b/chrome/browser/history/scored_history_match.cc index d34959a..967caab 100644 --- a/chrome/browser/history/scored_history_match.cc +++ b/chrome/browser/history/scored_history_match.cc @@ -455,14 +455,11 @@ void ScoredHistoryMatch::FillInDaysAgoToRecencyScoreArray() { // Linearly extrapolate between 30 and 90 days so 90 days has a score // of 20. unnormalized_recency_score = 20 + (90 - days_ago) * (50 - 20) / (90 - 30); - } else if (days_ago <= 365) { + } else { // Linearly extrapolate between 90 and 365 days so 365 days has a score // of 10. unnormalized_recency_score = 10 + (365 - days_ago) * (20 - 10) / (365 - 90); - } else { - // greater than a year. - unnormalized_recency_score = 10; } days_ago_to_recency_score[days_ago] = unnormalized_recency_score / 100.0; if (days_ago > 0) { |