Merge master.
[dcpomatic.git] / src / lib / job.cc
index c6a6b90a808fcdd234c053ce1c21a31d3128d3eb..31a10a44bd6af2343ca4ddfa525ed3b4e35226ad 100644 (file)
@@ -281,7 +281,7 @@ Job::error_summary () const
 void
 Job::set_error (string s, string d)
 {
-       _film->log()->log (String::compose ("Error in job: %1 (%2)", s, d));
+       _film->log()->log (String::compose ("Error in job: %1 (%2)", s, d), Log::TYPE_ERROR);
        boost::mutex::scoped_lock lm (_state_mutex);
        _error_summary = s;
        _error_details = d;
@@ -328,29 +328,6 @@ Job::status () const
        return s.str ();
 }
 
-string
-Job::json_status () const
-{
-       boost::mutex::scoped_lock lm (_state_mutex);
-
-       switch (_state) {
-       case NEW:
-               return N_("new");
-       case RUNNING:
-               return N_("running");
-       case PAUSED:
-               return N_("paused");
-       case FINISHED_OK:
-               return N_("finished_ok");
-       case FINISHED_ERROR:
-               return N_("finished_error");
-       case FINISHED_CANCELLED:
-               return N_("finished_cancelled");
-       }
-
-       return "";
-}
-
 /** @return An estimate of the remaining time for this sub-job, in seconds */
 int
 Job::remaining_time () const