From 6f9d3afc779538221be0d81d19c86a6e17fd7647 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Sat, 31 Mar 2018 12:00:19 +0300 Subject: [PATCH] Remove unused methods --- app/models/epp/domain.rb | 10 ---------- app/models/registrar.rb | 5 ----- 2 files changed, 15 deletions(-) diff --git a/app/models/epp/domain.rb b/app/models/epp/domain.rb index fb01fe38a1..43ad15bc77 100644 --- a/app/models/epp/domain.rb +++ b/app/models/epp/domain.rb @@ -38,16 +38,6 @@ def validate_contacts ok end - before_save :link_contacts - def link_contacts - #TODO: cleanup cache if we think to cache dynamic statuses - end - - after_destroy :unlink_contacts - def unlink_contacts - #TODO: cleanup cache if we think to cache dynamic statuses - end - class << self def new_from_epp(frame, current_user) domain = Epp::Domain.new diff --git a/app/models/registrar.rb b/app/models/registrar.rb index 5fd0008b51..525415cbee 100644 --- a/app/models/registrar.rb +++ b/app/models/registrar.rb @@ -105,11 +105,6 @@ def debit!(args) cash_account.account_activities.create!(args) end - def credit!(args) - args[:currency] = 'EUR' - cash_account.account_activities.create!(args) - end - def address [street, city, state, zip].reject(&:blank?).compact.join(', ') end