From 3abfbec6d44b143ad06d27cb57d5fb3fd6fff3fd Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Wed, 17 Sep 2014 02:08:51 +0900 Subject: [PATCH] remove useless code --- lib/motion/command/update.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/motion/command/update.rb b/lib/motion/command/update.rb index 3728cfdb..cba28776 100644 --- a/lib/motion/command/update.rb +++ b/lib/motion/command/update.rb @@ -136,13 +136,6 @@ module Motion; class Command end FileUtils.rm_f tmp_dest - dest_installation_dir = nil - if @wanted_software_version - dest_installation_dir = '/Library/RubyMotion' + wanted_software_version.to_s - elsif @prerelease_mode - dest_installation_dir = '/Library/RubyMotionPre' - end - if @wanted_software_version dest_installation_dir = '/Library/RubyMotion' + @wanted_software_version FileUtils.mv '/Library/RubyMotion', dest_installation_dir