about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-07-16 14:25:56 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-07-16 14:25:56 +0200
commit91544a6cb54e54b7cbfb266553d29763d6b68176 (patch)
treea27af94cf262c66b325216293661916313b147f5 /app
parentb4c9a860e5c349a9abdfbdc9b76f338e70fc89cc (diff)
Remove unused Account#magic_key (#11327)
Diffstat (limited to 'app')
-rw-r--r--app/models/account.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index a22b7fd7c..adf4586fa 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -301,21 +301,6 @@ class Account < ApplicationRecord
     self.fields = tmp
   end
 
-  def magic_key
-    modulus, exponent = [keypair.public_key.n, keypair.public_key.e].map do |component|
-      result = []
-
-      until component.zero?
-        result << [component % 256].pack('C')
-        component >>= 8
-      end
-
-      result.reverse.join
-    end
-
-    (['RSA'] + [modulus, exponent].map { |n| Base64.urlsafe_encode64(n) }).join('.')
-  end
-
   def subscription(webhook_url)
     @subscription ||= OStatus2::Subscription.new(remote_url, secret: secret, webhook: webhook_url, hub: hub_url)
   end