Skip to content

Commit

Permalink
Remove unused code from user.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmoura committed Jul 8, 2016
1 parent 63d8fa0 commit 1c30b32
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions apprecommender/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,29 +327,6 @@ def __init__(self, path, user_id=0):
User.__init__(self, submission.packages, user_id, submission.arch)


class PkgsListSystem(User):

def __init__(self, pkgs_list_or_file, user_id=0):
"""
Set initial parameters.
"""
if type(pkgs_list_or_file).__name__ == "list":
pkgs_list = pkgs_list_or_file
elif type(pkgs_list_or_file).__name__ == "str":
try:
with open(pkgs_list_or_file) as pkgs_list_file:
pkgs_list = [line.split()[0] for line in pkgs_list_file
if line.split()]
except IOError:
logging.critical("Could not open packages list file.")
raise Error
else:
logging.debug("No packages provided for user profiling.")
pkgs_list = []

User.__init__(self, dict.fromkeys(pkgs_list, 1), user_id)


class LocalSystem(User):

"""
Expand Down

0 comments on commit 1c30b32

Please sign in to comment.