revision: remove definition of unused 'add_object' function