mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-17 08:30:04 +00:00
remove set_last_sync function in config because it is obsolete
This commit is contained in:
parent
a4fe063703
commit
4060e2b105
1 changed files with 0 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue