Revert "Clean up effect.c"

This reverts commit 8b095578375a8e82655289ed9d39a70f66748178.