remove obsolete code
Merge pull request #8126 from owncloud/remove_obsolete_code_in_sharing_js

remove obsolete code