clean up unused lambdas

Signed-off-by: Mattias Andrée <maandree@operamail.com>