lib/taskwarrior-web/task.rb in taskwarrior-web-1.0.7 vs lib/taskwarrior-web/task.rb in taskwarrior-web-1.0.8
- old
+ new
@@ -1,9 +1,5 @@
-require 'taskwarrior-web/command'
-require 'taskwarrior-web/parser'
-require 'versionomy'
-
module TaskwarriorWeb
#################
# MAIN TASK CLASS
#################
@@ -52,14 +48,10 @@
tasks
end
# Get the number of tasks for some paramters
def self.count(*args)
- if TaskwarriorWeb::Config.version > Versionomy.parse('1.9.2')
- Command.new(:count, nil, *args).run.to_s.strip!
- else
- self.query(*args).count
- end
+ self.query(*args).count
end
# Define method_missing to implement dynamic finder methods
def self.method_missing(method_sym, *arguments, &block)
match = TaskDynamicFinderMatch.new(method_sym)