Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-1588: Removed some very old dead code.

Chris M. Hostetter36249c7416a1
diff --git a/CHANGES.txt b/CHANGES.txt
index 81db5bc1e94..a2336762b0f 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -200,7 +200,9 @@ 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
----------------------
diff --git a/src/java/org/apache/solr/schema/FieldProperties.java b/src/java/org/apache/solr/schema/FieldProperties.java
index f6dee0691f2..640ad099ad2 100644
--- a/src/java/org/apache/solr/schema/FieldProperties.java
+++ b/src/java/org/apache/solr/schema/FieldProperties.java
@@ -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()) {