Remove useless method in Gson