app: remove useless code.
Fixes warning brought by my commit 015f4946: > warning: variable ‘max_position’ set but not used [-Wunused-but-set-variable]
Fixes warning brought by my commit 015f4946: > warning: variable ‘max_position’ set but not used [-Wunused-but-set-variable]