From 7d1a30d8d620101814e1e76ccf2c52f800afccba Mon Sep 17 00:00:00 2001 From: shikhman Date: Thu, 1 Sep 2016 13:20:06 -0700 Subject: [PATCH] Remove backfill for DnsWriter and PricingEngine The backfill for these is no longer necessary as all of the Registry entities in all environments have been backfilled. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=131984138 --- .../registry/model/registry/Registry.java | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/java/google/registry/model/registry/Registry.java b/java/google/registry/model/registry/Registry.java index 76e20f39c..f80f3a75a 100644 --- a/java/google/registry/model/registry/Registry.java +++ b/java/google/registry/model/registry/Registry.java @@ -47,7 +47,6 @@ import com.googlecode.objectify.annotation.Embed; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Mapify; -import com.googlecode.objectify.annotation.OnLoad; import com.googlecode.objectify.annotation.OnSave; import com.googlecode.objectify.annotation.Parent; import google.registry.config.RegistryEnvironment; @@ -58,7 +57,6 @@ import google.registry.model.common.EntityGroupRoot; import google.registry.model.common.TimedTransitionProperty; import google.registry.model.common.TimedTransitionProperty.TimedTransition; import google.registry.model.domain.fee.EapFee; -import google.registry.model.pricing.StaticPremiumListPricingEngine; import google.registry.model.registry.label.PremiumList; import google.registry.model.registry.label.ReservedList; import google.registry.util.Idn; @@ -242,29 +240,6 @@ public class Registry extends ImmutableObject implements Buildable { CACHE.invalidate(tldStr); } - /** - * Backfill the Registry entities that were saved before this field was added. - * - *

Note that this defaults to the {@link StaticPremiumListPricingEngine}. - */ - // TODO(b/26901539): Remove this backfill once it is populated on all Registry entities. - @OnLoad - void backfillPricingEngine() { - if (pricingEngineClassName == null) { - pricingEngineClassName = StaticPremiumListPricingEngine.NAME; - } - } - - /** Backfill the Registry entities that were saved before this field was added. */ - // TODO(shikhman): Remove this backfill once it is populated on all Registry entities. - @OnLoad - void backfillDnsWriter() { - if (dnsWriter == null) { - dnsWriter = "VoidDnsWriter"; - } - } - - /** * The name of the pricing engine that this TLD uses. *