Printing fix.

Removed (with if-statement) code no longer used by the add layer function.