mongo-sync: Drop an unused function

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
mongo-sync: Fix a signed<->unsigned comparsion

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>