Squelch implementing deprecated method warning.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>