Remove the unused _get_unused_flavor_id()

This patch removes the unused _get_unused_flavor_id() for the
maintainability.

Change-Id: I868c51c68d4ef1c73ea47f89e885d12602527e25
2 files changed