There is only one caller that always calls the method with
a non-empty prefix.
Inline the relevant logic into the only caller, and drop
unused logic that would have handled the case of an
empty prefix.
Change-Id: I5ef0b289d8993f0a246fce89d3237534636b4f5a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198762
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins