Removed unnecessary function in header file