remove unused code in share.js

@Kondou-ger @DeepDiver1975 @Raydiation 

Just remove useless code