mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
remove useless function check_config
This commit is contained in:
parent
47430ce611
commit
7ea4f19698
1 changed files with 0 additions and 8 deletions
|
@ -179,13 +179,6 @@ class MPW
|
||||||
@keys.delete(key)
|
@keys.delete(key)
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO
|
|
||||||
def check_config
|
|
||||||
if false
|
|
||||||
raise 'ERROR'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Set config
|
# Set config
|
||||||
# args: config -> a hash with config options
|
# args: config -> a hash with config options
|
||||||
def set_config(config)
|
def set_config(config)
|
||||||
|
@ -277,7 +270,6 @@ class MPW
|
||||||
|
|
||||||
# Import to yaml
|
# Import to yaml
|
||||||
# @args: file -> path to file import
|
# @args: file -> path to file import
|
||||||
# TODO raise
|
|
||||||
def import(file)
|
def import(file)
|
||||||
YAML::load_file(file).each_value do |row|
|
YAML::load_file(file).each_value do |row|
|
||||||
item = Item.new(name: row['name'],
|
item = Item.new(name: row['name'],
|
||||||
|
|
Loading…
Add table
Reference in a new issue