* Refactor iqdb response collection

This commit is contained in:
r888888888
2014-05-08 16:42:16 -07:00
parent d46042f038
commit 6de67da280
7 changed files with 7 additions and 18 deletions

View File

@@ -49,15 +49,6 @@ module Iqdb
end
end
def similar(post_id, results, flags = FLAG_DISCARD_COMMON_COEFFS)
request do
hex_id = post_id.to_s(16)
socket.puts "sim 0 #{flags} #{results} #{hex_id}"
socket.puts "done"
responses = Responses::Collection.new(socket.read)
end
end
def query(results, filename, flags = FLAG_DISCARD_COMMON_COEFFS)
request do
socket.puts "query 0 #{flags} #{results} #{filename}"