Removed redundant code

Accidentally left some redundant code in the render function, removed in
this commit.