diff options
author | Arne H Juul <arnej@yahooinc.com> | 2022-03-14 14:08:58 +0000 |
---|---|---|
committer | Arne H Juul <arnej@yahooinc.com> | 2022-03-14 14:08:58 +0000 |
commit | a7bbb22c377f645981da6e2aa145c4f2525948c3 (patch) | |
tree | af490471e05c1b1ff6752179dadf4655ad10f7a3 /config-model/src/main/java/com/yahoo/documentmodel | |
parent | 5e0381311287094dc2f47310fe246b17d46071e9 (diff) |
Revert "ensure unique ReferenceDataType instances"
This reverts commit 994196c5354c02f40c223cf4fe3388aba09ea020.
Diffstat (limited to 'config-model/src/main/java/com/yahoo/documentmodel')
-rw-r--r-- | config-model/src/main/java/com/yahoo/documentmodel/NewDocumentType.java | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/config-model/src/main/java/com/yahoo/documentmodel/NewDocumentType.java b/config-model/src/main/java/com/yahoo/documentmodel/NewDocumentType.java index 4ff54d7ff1c..d98869e9dd3 100644 --- a/config-model/src/main/java/com/yahoo/documentmodel/NewDocumentType.java +++ b/config-model/src/main/java/com/yahoo/documentmodel/NewDocumentType.java @@ -4,10 +4,8 @@ package com.yahoo.documentmodel; import com.yahoo.document.DataType; import com.yahoo.document.Document; import com.yahoo.document.Field; -import com.yahoo.document.ReferenceDataType; import com.yahoo.document.StructDataType; import com.yahoo.document.StructuredDataType; -import com.yahoo.document.TemporaryStructuredDataType; import com.yahoo.document.annotation.AnnotationType; import com.yahoo.document.annotation.AnnotationTypeRegistry; import com.yahoo.document.datatypes.FieldValue; @@ -385,18 +383,4 @@ public final class NewDocumentType extends StructuredDataType implements DataTyp } - private ReferenceDataType refToThis = null; - - @SuppressWarnings("deprecation") - public ReferenceDataType getReferenceDataType() { - if (refToThis == null) { - // super ugly, the APIs for this are horribly inconsistent - var tmptmp = TemporaryStructuredDataType.create(getName()); - var tmp = ReferenceDataType.createWithInferredId(tmptmp); - tmp.setTargetType((StructuredDataType) this); - refToThis = tmp; - } - return refToThis; - } - } |