From f45e053316b9f9c2cb5961e98971a620e5562693 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Tue, 30 Jun 2015 04:23:57 +0200 Subject: [PATCH] remove unused publics_helper the Subscriber stuff was removed in 2010: f97218c005ca4e6a482d5b50f4701d0a9a19b700 --- app/helpers/publics_helper.rb | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 app/helpers/publics_helper.rb diff --git a/app/helpers/publics_helper.rb b/app/helpers/publics_helper.rb deleted file mode 100644 index b7a063a07..000000000 --- a/app/helpers/publics_helper.rb +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright (c) 2010-2011, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. - -module PublicsHelper - def subscribe(opts = {}) - subscriber = Subscriber.first(:url => opts[:callback], :topic => opts[:topic]) - subscriber ||= Subscriber.new(:url => opts[:callback], :topic => opts[:topic]) - - if subscriber.save - if opts[:verify] == 'sync' - 204 - elsif opts[:verify] == 'async' - 202 - end - else - 400 - end - end - -end