summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2018-07-20 14:19:11 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2018-07-20 14:19:11 +0200
commite2dff4c7357ea5fcafb68a1677035c19bdde8f8a (patch)
tree7cfd4df4e7ab2d5e336c7d2f89f811a16c917579 /document
parente4eeaf0806416d5e15cfe0e9300f246e6b3093e7 (diff)
Remove a restriction that is not necessary since FieldUpdates are applied first.
Diffstat (limited to 'document')
-rw-r--r--document/src/main/java/com/yahoo/document/DocumentUpdate.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/document/src/main/java/com/yahoo/document/DocumentUpdate.java b/document/src/main/java/com/yahoo/document/DocumentUpdate.java
index 91e4a7091b8..70c5410534e 100644
--- a/document/src/main/java/com/yahoo/document/DocumentUpdate.java
+++ b/document/src/main/java/com/yahoo/document/DocumentUpdate.java
@@ -129,8 +129,6 @@ public class DocumentUpdate extends DocumentOperation implements Iterable<FieldP
* @throws IllegalArgumentException if the document does not have the same document type as this update
*/
public DocumentUpdate prune(Document doc) {
- if ( ! fieldPathUpdates.isEmpty()) return this;
-
verifyType(doc);
for (Iterator<FieldUpdate> iter = fieldUpdates.iterator(); iter.hasNext();) {