Remove unreached code and fixed Sparkle updates for security.