Fix #38 removed unused code for star / unstar in both the c code and java