Remove deprecated fn and get_fn.

These functions were deprecated in 2012 (before the project
was open-sourced?)

Also remove extraneous `import warnings`