Fix app crashing on launch in release mode.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Remove some dead code.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Fix annoying warning in console.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Merge branch 'master' into feature/use-query-for-token-completion

* master:
  Fix annoying warning in console.
  Remove some dead code.
  Fix app crashing on launch in release mode.