Refactor: remove unused code from profile
The Profile class (which is used for users and groups) consists mainly of unused code.
The following has_many associations of Profile seem to be obsolete:
- phone_numbers
- locations
- email_addresses
- websites
- im_addresses
- notes
Additionally, Profile belongs_to a list of classes, most of these relations seem to be obsolete as well:
- geolocation
- wall
- video
The DB schema of "profiles" still contains columns which do not seem to be used in the code anymore. Candidates are:
- name_prefix
- first_name
- middle_name
- last_name
- name_suffix
- nickname
- birthday
- fof
- may_see_committees
- may_see_networks
- may_see_members
- may_request_membership
- may_see_groups
- may_see_contacts
I think profile would be a good start for dead-code-removal. @azul: Is there any "dead code detection" tool you would recommend? There seem to be quite a few: https://stackoverflow.com/questions/9735307/find-unused-code-in-a-rails-app