Tiled Gallery: Remove unused function.

Removed attachment link logic from the plugin file, since it was an unused duplicate for what is done in the layout files.