Fixed Cppcheck warning, method can be static