Remove unused code

Change-Id: I9610e0366c5aed35d572ef7c62a1542fff8627f0
Reviewed-by: Jeremy Whiting <jpwhiting@kde.org>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Use -Werror

Change-Id: I82e95256b931faf5e9ea8059d87d50d1822f72bb
Reviewed-by: Jeremy Whiting <jpwhiting@kde.org>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>