From 4d2049025858979af64d4289286404d96c0c4fb3 Mon Sep 17 00:00:00 2001 From: nickfelt Date: Thu, 16 Mar 2017 08:56:42 -0700 Subject: [PATCH] Remove unused method from PollMessage.OneTime This was created during the Registry 2.0 migration for use by a scrap servlet ([] and never removed. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=150325126 --- .../registry/model/poll/PollMessage.java | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/java/google/registry/model/poll/PollMessage.java b/java/google/registry/model/poll/PollMessage.java index 6700a1fda..2896393e4 100644 --- a/java/google/registry/model/poll/PollMessage.java +++ b/java/google/registry/model/poll/PollMessage.java @@ -15,7 +15,6 @@ package google.registry.model.poll; import static google.registry.util.CollectionUtils.forceEmptyToNull; -import static google.registry.util.CollectionUtils.isNullOrEmpty; import static google.registry.util.CollectionUtils.nullToEmpty; import static google.registry.util.DateTimeUtils.END_OF_TIME; import static google.registry.util.PreconditionsUtils.checkArgumentNotNull; @@ -32,11 +31,8 @@ import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Index; import com.googlecode.objectify.annotation.Parent; import google.registry.model.Buildable; -import google.registry.model.EppResource; import google.registry.model.ImmutableObject; import google.registry.model.annotations.ExternalMessagingName; -import google.registry.model.contact.ContactResource; -import google.registry.model.domain.DomainBase; import google.registry.model.domain.DomainRenewData; import google.registry.model.domain.launch.LaunchInfoResponseExtension; import google.registry.model.eppoutput.EppResponse.ResponseData; @@ -218,24 +214,6 @@ public abstract class PollMessage extends ImmutableObject .build(); } - /** - * Returns the class of the parent EppResource that this poll message is associated with, - * either DomainBase or ContactResource. - */ - public Class getParentResourceClass() { - if (!isNullOrEmpty(domainPendingActionNotificationResponses) - || !isNullOrEmpty(domainTransferResponses)) { - return DomainBase.class; - } else if (!isNullOrEmpty(contactPendingActionNotificationResponses) - || !isNullOrEmpty(contactTransferResponses)) { - return ContactResource.class; - } else { - throw new IllegalStateException(String.format( - "PollMessage.OneTime %s does not correspond with an EppResource of a known type", - Key.create(this))); - } - } - @Override public ImmutableList getResponseExtensions() { return (launchInfoResponseExtension == null) ? ImmutableList.of() :