remove unused methods

This commit is contained in:
Anton Chuchkalov 2016-01-20 13:20:10 +03:00
parent a96ea68922
commit 80f39e4e54
3 changed files with 1 additions and 14 deletions

View File

@ -73,10 +73,6 @@ module Devops
} }
end end
def self.create_from_json! json
Image.new( JSON.parse(json) )
end
end end
end end
end end

View File

@ -30,10 +30,6 @@ module Devops
key key
end end
def self.create_from_json json
Key.new( JSON.parse(json) )
end
def filename def filename
File.basename(self.path) File.basename(self.path)
end end

View File

@ -75,17 +75,12 @@ module Devops
user user
end end
def self.create_from_json json
User.new( JSON.parse(json) )
end
def to_hash_without_id def to_hash_without_id
o = { {
"email" => self.email, "email" => self.email,
"password" => self.password, "password" => self.password,
"privileges" => self.privileges "privileges" => self.privileges
} }
o
end end
def check_privileges cmd, required_privelege def check_privileges cmd, required_privelege