Skip to content

Commit

Permalink
ext: removal of unused methods
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
  • Loading branch information
jirikuncar committed Dec 2, 2015
1 parent 9be594e commit 0e7bb71
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions invenio_oauthclient/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

from __future__ import absolute_import, print_function

import pkg_resources
from flask_login import user_logged_out

from . import config
Expand All @@ -37,7 +36,7 @@
class _OAuthClientState(object):
"""OAuth client state storing registered actions."""

def __init__(self, app, entry_point_group=None):
def __init__(self, app):
"""Initialize state."""
self.app = app
self.handlers = {}
Expand Down Expand Up @@ -106,16 +105,6 @@ def dummy_handler(remote, *args, **kargs):
view=account_view_handler,
)

def register_action(self, action):
"""Register an action to be showed in the actions list."""
assert action.value not in self.actions
self.actions[action.value] = action

def load_entry_point_group(self, entry_point_group):
"""Load actions from an entry point group."""
for ep in pkg_resources.iter_entry_points(group=entry_point_group):
self.register_action(ep.load())


class InvenioOAuthClient(object):
"""Invenio Oauthclient extension."""
Expand Down

0 comments on commit 0e7bb71

Please sign in to comment.