1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-10-27 02:33:19 +00:00

remove set_last_sync function in config because it is obsolete

This commit is contained in:
nishiki 2016-05-15 18:31:56 +02:00
parent a4fe063703
commit 4060e2b105

View file

@ -122,22 +122,5 @@ class Config
return false
end
# Set the last update when there is a sync
# @rtrn: true is the file has been updated
def set_last_sync
config = {'config' => {'key' => @key,
'lang' => @lang,
'wallet_dir' => @wallet_dir,
}
}
File.open(@config_file, 'w') do |file|
file << config.to_yaml
end
rescue Exception => e
raise "#{I18n.t('error.config.write')}\n#{e}"
end
end
end