mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-06 04:45:31 -04:00
Remove the unused get
method from MangaDex::Queue
This commit is contained in:
parent
dfd53bc51d
commit
7575785c1c
@ -174,14 +174,6 @@ module MangaDex
|
|||||||
self.delete job.id
|
self.delete job.id
|
||||||
end
|
end
|
||||||
|
|
||||||
def get(job : Job)
|
|
||||||
DB.open "sqlite3://#{@path}" do |db|
|
|
||||||
db.query_one "select * from queue where id = (?)", id do |res|
|
|
||||||
job.parse_query_result res
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def delete_status(status : JobStatus)
|
def delete_status(status : JobStatus)
|
||||||
DB.open "sqlite3://#{@path}" do |db|
|
DB.open "sqlite3://#{@path}" do |db|
|
||||||
db.exec "delete from queue where status = (?)", status.to_i
|
db.exec "delete from queue where status = (?)", status.to_i
|
||||||
|
Loading…
x
Reference in New Issue
Block a user