mirror of https://github.com/apache/lucene.git
SOLR-1588: Removed some very old dead code.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@898124 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
42e8d5c2c7
commit
36249c7416
|
@ -200,6 +200,8 @@ Other Changes
|
|||
(an extremeely small) potential for deadlock.
|
||||
(gabriele renzi via hossman)
|
||||
|
||||
* SOLR-1588: Removed some very old dead code.
|
||||
(Chris A. Mattmann via hossman)
|
||||
|
||||
Build
|
||||
----------------------
|
||||
|
|
|
@ -99,40 +99,6 @@ abstract class FieldProperties {
|
|||
return (bitfield & props) == 0;
|
||||
}
|
||||
|
||||
/***
|
||||
static int normalize(int properties) {
|
||||
int p = properties;
|
||||
if (on(p,TOKENIZED) && off(p,INDEXED)) {
|
||||
throw new RuntimeException("field must be indexed to be tokenized.");
|
||||
}
|
||||
|
||||
if (on(p,STORE_TERMPOSITIONS)) p|=STORE_TERMVECTORS;
|
||||
if (on(p,STORE_TERMOFFSETS)) p|=STORE_TERMVECTORS;
|
||||
if (on(p,STORE_TERMOFFSETS) && off(p,INDEXED)) {
|
||||
throw new RuntimeException("field must be indexed to store term vectors.");
|
||||
}
|
||||
|
||||
if (on(p,OMIT_NORMS) && off(p,INDEXED)) {
|
||||
throw new RuntimeException("field must be indexed for norms to be omitted.");
|
||||
}
|
||||
|
||||
if (on(p,SORT_MISSING_FIRST) && on(p,SORT_MISSING_LAST)) {
|
||||
throw new RuntimeException("conflicting options sortMissingFirst,sortMissingLast.");
|
||||
}
|
||||
|
||||
if ((on(p,SORT_MISSING_FIRST) || on(p,SORT_MISSING_LAST)) && off(p,INDEXED)) {
|
||||
throw new RuntimeException("field must be indexed to be sorted.");
|
||||
}
|
||||
|
||||
if ((on(p,BINARY) || on(p,COMPRESSED)) && off(p,STORED)) {
|
||||
throw new RuntimeException("field must be stored for compressed or binary options.");
|
||||
}
|
||||
|
||||
return p;
|
||||
}
|
||||
***/
|
||||
|
||||
|
||||
static int parseProperties(Map<String,String> properties, boolean which) {
|
||||
int props = 0;
|
||||
for (Map.Entry<String, String> entry : properties.entrySet()) {
|
||||
|
|
Loading…
Reference in New Issue