Remove unused and overflowing function

Resolves https://github.com/owncloud/core/issues/10991 failure 4
Merge pull request #11151 from owncloud/removeOverflowingFunction

Remove unused and overflowing function