libamt: remove unused function foo.