Warning ‘remove_admin_bar’

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘remove_admin_bar’ not found or invalid function name in /home/directory/public_html/wp-includes/class-wp-hook.php on line 292

Not sure why this error is appearing in our head and footer of website.

Any help appreciated