From 16bb1edfb91a75a3ce9aa81989592eb59975f300 Mon Sep 17 00:00:00 2001 From: Guilherme Sperb Machado Date: Fri, 28 Sep 2018 20:15:52 +0200 Subject: [PATCH] Remove un-used dependency and services from mail-service module. --- commons/mail-service/build.gradle | 2 -- .../iconator/commons/mailservice/MailContentBuilder.java | 8 -------- 2 files changed, 10 deletions(-) diff --git a/commons/mail-service/build.gradle b/commons/mail-service/build.gradle index 4fa8e05..a4d1409 100644 --- a/commons/mail-service/build.gradle +++ b/commons/mail-service/build.gradle @@ -6,8 +6,6 @@ bootJar.enabled = false dependencies { compile project(':commons:model') - compile project(':commons:bitcoin') - compile project(':commons:ethereum') compile project(':commons:amqp-service') // Spring Boot diff --git a/commons/mail-service/src/main/java/io/iconator/commons/mailservice/MailContentBuilder.java b/commons/mail-service/src/main/java/io/iconator/commons/mailservice/MailContentBuilder.java index b71a39c..7920f2b 100644 --- a/commons/mail-service/src/main/java/io/iconator/commons/mailservice/MailContentBuilder.java +++ b/commons/mail-service/src/main/java/io/iconator/commons/mailservice/MailContentBuilder.java @@ -1,7 +1,5 @@ package io.iconator.commons.mailservice; -import io.iconator.commons.bitcoin.BitcoinAddressService; -import io.iconator.commons.ethereum.EthereumAddressService; import io.iconator.commons.mailservice.config.MailServiceConfigHolder; import io.iconator.commons.model.CurrencyType; import io.iconator.commons.model.db.Investor; @@ -31,20 +29,14 @@ public class MailContentBuilder { private final static Logger LOG = LoggerFactory.getLogger(MailContentBuilder.class); private final TemplateEngine templateEngine; - private final BitcoinAddressService bitcoinAddressService; - private final EthereumAddressService ethereumAddressService; private final MailServiceConfigHolder mailServiceConfigHolder; private static ByteArrayResource logoContentData; @Autowired public MailContentBuilder(TemplateEngine templateEngine, - BitcoinAddressService bitcoinAddressService, - EthereumAddressService ethereumAddressService, MailServiceConfigHolder mailServiceConfigHolder) { this.templateEngine = templateEngine; - this.bitcoinAddressService = bitcoinAddressService; - this.ethereumAddressService = ethereumAddressService; this.mailServiceConfigHolder = mailServiceConfigHolder; }