Skip to content

Commit

Permalink
Removed unused/unnecessary rest push activation methods with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Jul 1, 2024
1 parent aee4e16 commit c6c7422
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 44 deletions.
19 changes: 0 additions & 19 deletions lib/ably/rest/push.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,6 @@ def initialize(client)
def admin
@admin ||= Admin.new(self)
end

# Activate this device for push notifications by registering with the push transport such as GCM/APNS
#
# @note This is unsupported in the Ruby library
def activate(*arg)
raise_unsupported
end

# Deactivate this device for push notifications by removing the registration with the push transport such as GCM/APNS
#
# @note This is unsupported in the Ruby library
def deactivate(*arg)
raise_unsupported
end

private
def raise_unsupported
raise Ably::Exceptions::PushNotificationsNotSupported, 'This device does not support receiving or subscribing to push notifications. All PushChannel methods are unavailable'
end
end
end
end
25 changes: 0 additions & 25 deletions spec/acceptance/rest/push_spec.rb

This file was deleted.

0 comments on commit c6c7422

Please sign in to comment.