summaryrefslogtreecommitdiff
path: root/src/mongo/db/fts
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2014-04-29 17:20:15 -0400
committerHari Khalsa <hkhalsa@10gen.com>2014-04-29 18:27:53 -0400
commit712e4f8063a0e329fd6d69d80d992e2214f97d6e (patch)
tree9700c99bf57a1a799d7003c92c7c873018b9f869 /src/mongo/db/fts
parentd1f3f35e11230d1ee2bf2b81b637427036d72a0a (diff)
downloadmongo-712e4f8063a0e329fd6d69d80d992e2214f97d6e.tar.gz
SERVER-13783 remove likelyInMemory and PageFaultException
Diffstat (limited to 'src/mongo/db/fts')
-rw-r--r--src/mongo/db/fts/fts_util.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/mongo/db/fts/fts_util.h b/src/mongo/db/fts/fts_util.h
index fe9ad0de341..5a749b27f53 100644
--- a/src/mongo/db/fts/fts_util.h
+++ b/src/mongo/db/fts/fts_util.h
@@ -34,7 +34,6 @@
#include "mongo/db/hasher.h"
#include "mongo/db/jsobj.h"
-#include "mongo/db/storage/record.h"
#include "mongo/util/unordered_fast_key_table.h"
namespace mongo {
@@ -59,35 +58,6 @@ namespace mongo {
(*s)[i] = (char)tolower( (int)(*s)[i] );
}
- /*
- * ScoredLocation stores the total score for a document (record *) wrt a search
- *
- */
- struct ScoredLocation {
- ScoredLocation( Record* r, double sc )
- : rec(r), score(sc) {
- }
-
- Record* rec;
- double score;
-
- bool operator<( const ScoredLocation& other ) const {
- if ( other.score < score )
- return true;
- if ( other.score > score )
- return false;
- return rec < other.rec;
- }
- };
-
- // scored location comparison is done based on score
- class ScoredLocationComp {
- public:
- bool operator() (const ScoredLocation& lhs, const ScoredLocation& rhs) const {
- return (lhs.score > rhs.score);
- }
- };
-
struct _be_hash {
size_t operator()( const BSONElement& e ) const {
return static_cast<size_t>( BSONElementHasher::hash64( e, 17 ) );