summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/schema/document/SDField.java
diff options
context:
space:
mode:
Diffstat (limited to 'config-model/src/main/java/com/yahoo/schema/document/SDField.java')
-rw-r--r--config-model/src/main/java/com/yahoo/schema/document/SDField.java28
1 files changed, 1 insertions, 27 deletions
diff --git a/config-model/src/main/java/com/yahoo/schema/document/SDField.java b/config-model/src/main/java/com/yahoo/schema/document/SDField.java
index 668b6388620..fbb2b2dc21f 100644
--- a/config-model/src/main/java/com/yahoo/schema/document/SDField.java
+++ b/config-model/src/main/java/com/yahoo/schema/document/SDField.java
@@ -16,8 +16,6 @@ import com.yahoo.language.process.Embedder;
import com.yahoo.language.simple.SimpleLinguistics;
import com.yahoo.schema.Index;
import com.yahoo.schema.Schema;
-import com.yahoo.schema.fieldoperation.FieldOperation;
-import com.yahoo.schema.fieldoperation.FieldOperationContainer;
import com.yahoo.tensor.TensorType;
import com.yahoo.vespa.documentmodel.SummaryField;
import com.yahoo.vespa.indexinglanguage.ExpressionSearcher;
@@ -50,7 +48,7 @@ import java.util.TreeMap;
*
* @author bratseth
*/
-public class SDField extends Field implements TypedKey, FieldOperationContainer, ImmutableSDField {
+public class SDField extends Field implements TypedKey, ImmutableSDField {
/** Use this field for modifying index-structure, even if it doesn't have any indexing code */
private boolean indexStructureField = false;
@@ -118,9 +116,6 @@ public class SDField extends Field implements TypedKey, FieldOperationContainer,
/** The aliases declared for this field. May pertain to indexes or attributes */
private final Map<String, String> aliasToName = new HashMap<>();
- /** Pending operations that must be applied after parsing, due to use of not-yet-defined structs. */
- private final List<FieldOperation> pendingOperations = new LinkedList<>();
-
private boolean isExtraField = false;
private boolean wasConfiguredToDoAttributing = false;
@@ -351,27 +346,6 @@ public class SDField extends Field implements TypedKey, FieldOperationContainer,
private Matching matchingForStructFields = null;
- public void addOperation(FieldOperation op) {
- pendingOperations.add(op);
- }
-
- @Override
- public void applyOperations(SDField field) {
- if (pendingOperations.isEmpty()) return;
-
- Collections.sort(pendingOperations);
- ListIterator<FieldOperation> ops = pendingOperations.listIterator();
- while (ops.hasNext()) {
- FieldOperation op = ops.next();
- ops.remove();
- op.apply(field);
- }
- }
-
- public void applyOperations() {
- applyOperations(this);
- }
-
public void setId(int fieldId, DocumentType owner) {
super.setId(fieldId, owner);
idOverride = true;