Return selected button and entered text, as intended.
Remove dead code.
Suppress annoying warning message.

Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>