From 13d5afb9d013acf5dcd050bab6236cac98761739 Mon Sep 17 00:00:00 2001 From: nishiki Date: Wed, 15 Jan 2014 19:03:46 +0100 Subject: [PATCH] clean all variable --- lib/MPW.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/MPW.rb b/lib/MPW.rb index e38ec0a..f09f438 100644 --- a/lib/MPW.rb +++ b/lib/MPW.rb @@ -39,7 +39,6 @@ class MPW # @args: key -> the gpg key to encrypt # lang -> the software language # file_gpg -> the file who is encrypted - # file_pwd -> the file who stock the password # timeout_pwd -> time to save the password # @rtrn: true if le config file is create def setup(key, lang, file_gpg, timeout_pwd) @@ -117,10 +116,6 @@ class MPW return true rescue Exception => e - if !@file_pwd.nil? && File.exist?(@file_pwd) - File.delete(@file_pwd) - end - @error_msg = "#{I18n.t('error.gpg_file.decrypt')}\n#{e}" return false end