functions.php isn’t the issue. That’s just where the error message is. There are a couple calls to get_currentuserinfo() in W3 Total Cache.
In version 0.9.4.1:
\wp-content\plugins\w3-total-cache\lib\W3\AdminActions\SupportActionsAdmin.php line 655
\wp-content\plugins\w3-total-cache\lib\W3\PgCacheAdminEnvironment.php line 562
You can replace get_currentuserinfo() with wp_get_current_user() on those lines. The error is resolved. If you’re running a different version, I would assume a find and replace inside the w3-total-cache plugin directory will do the trick.