Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions core/src/main/java/google/registry/batch/BatchModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,6 @@ public class BatchModule {

static final int DEFAULT_MAX_QPS = 10;

@Provides
@Parameter("replyTo")
static String provideReplyTo(HttpServletRequest req) {
return extractRequiredParameter(req, "replyTo");
}

@Provides
@Parameter("receiver")
static String provideReceiver(HttpServletRequest req) {
return extractRequiredParameter(req, "receiver");
}

@Provides
@Parameter("jobName")
static Optional<String> provideJobName(HttpServletRequest req) {
Expand Down

This file was deleted.

18 changes: 1 addition & 17 deletions core/src/main/java/google/registry/groups/GmailClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,6 @@ public final class GmailClient {
}
}

// TODO(b/510340944): Remove this experiment method
public GmailClient(
Lazy<Gmail> gmail,
Retrier retrier,
@Config("isEmailSendingEnabled") boolean isEmailSendingEnabled,
@Config("replyToEmailAddress") InternetAddress replyToEmailAddress) {

this.gmail = gmail;
this.retrier = retrier;
this.isEmailSendingEnabled = isEmailSendingEnabled;
this.replyToEmailAddress = replyToEmailAddress;
this.outgoingEmailAddressWithUsername = null;
}

/**
* Sends {@code emailMessage} using {@link Gmail}.
*/
Expand Down Expand Up @@ -131,9 +117,7 @@ MimeMessage toMimeMessage(EmailMessage emailMessage) {
try {
MimeMessage msg =
new MimeMessage(Session.getDefaultInstance(new Properties(), /* authenticator= */ null));
if (this.outgoingEmailAddressWithUsername != null) {
msg.setFrom(this.outgoingEmailAddressWithUsername);
}
msg.setFrom(this.outgoingEmailAddressWithUsername);
msg.setReplyTo(
new InternetAddress[] {emailMessage.replyToEmailAddress().orElse(replyToEmailAddress)});
msg.addRecipients(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import dagger.Subcomponent;
import google.registry.batch.BatchModule;
import google.registry.batch.BulkDomainTransferAction;
import google.registry.batch.CannedScriptExecutionAction;
import google.registry.batch.DeleteExpiredDomainsAction;
import google.registry.batch.DeleteLoadTestDataAction;
import google.registry.batch.DeleteProberDataAction;
Expand Down Expand Up @@ -179,8 +178,6 @@ public interface RequestComponent {

BulkDomainTransferAction bulkDomainTransferAction();

CannedScriptExecutionAction cannedScriptExecutionAction();

CheckApiAction checkApiAction();

ConsoleBulkDomainAction consoleBulkDomainAction();
Expand Down
1 change: 0 additions & 1 deletion core/src/test/resources/google/registry/module/routing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ BACKEND /_dr/task/deleteLoadTestData DeleteLoadTestDataAc
BACKEND /_dr/task/deleteProberData DeleteProberDataAction POST n APP ADMIN
BACKEND /_dr/task/dnsRefresh RefreshDnsAction GET y APP ADMIN
BACKEND /_dr/task/domainWatcher DomainWatcherAction POST n APP ADMIN
BACKEND /_dr/task/executeCannedScript CannedScriptExecutionAction POST,GET y APP ADMIN
BACKEND /_dr/task/expandBillingRecurrences ExpandBillingRecurrencesAction GET n APP ADMIN
BACKEND /_dr/task/exportDomainLists ExportDomainListsAction POST n APP ADMIN
BACKEND /_dr/task/exportDropList ExportDropListAction POST n APP ADMIN
Expand Down
Loading