Removed unused code in snap.rb