Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5656)

Unified Diff: chrome/browser/history/scored_history_match.cc

Issue 10535084: Coverity: Remove dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/scored_history_match.cc
diff --git a/chrome/browser/history/scored_history_match.cc b/chrome/browser/history/scored_history_match.cc
index 8f8c3737f1dcc70e974c7d71222fd1705eb30fec..64a2717f9c542ac7a6bd813218ff2d3882761f67 100644
--- a/chrome/browser/history/scored_history_match.cc
+++ b/chrome/browser/history/scored_history_match.cc
@@ -392,8 +392,7 @@ void ScoredHistoryMatch::FillInTermScoreToTopicalityScoreArray() {
// function so a score of 10 points gets a 1.0 (to meet up exactly
// with the linear component) and increases logarithmically until
// maxing out at 30 points, with computes to a score around 2.1.
- topicality_score = (1.0 + 2.25 * log10(0.1 *
- ((term_score <= 30) ? term_score : 30)));
+ topicality_score = (1.0 + 2.25 * log10(0.1 * term_score));
}
raw_term_score_to_topicality_score[term_score] = topicality_score;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698