removing redundant function

Change-Id: Ifcb3b691d47fd4ab0ec9945905fe49a59b1bd933
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>