From c25b83f42d88e18d275928450bde792c2e1ff497 Mon Sep 17 00:00:00 2001
From: victor <taehoon@falinux.com>
Date: Fri, 20 Oct 2017 10:34:17 +0900
Subject: [PATCH] =?UTF-8?q?=EC=A0=84=EC=9B=90=20=EC=BC=9C=EC=A7=90=20?=
 =?UTF-8?q?=EA=B8=B0=EB=A1=9D=20=EA=B8=B0=EB=8A=A5=20=EC=A0=9C=EA=B1=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/gui/oven_control/haccp.cpp | 29 +----------------------------
 1 file changed, 1 insertion(+), 28 deletions(-)

diff --git a/app/gui/oven_control/haccp.cpp b/app/gui/oven_control/haccp.cpp
index ec5bd41..00d50db 100644
--- a/app/gui/oven_control/haccp.cpp
+++ b/app/gui/oven_control/haccp.cpp
@@ -41,7 +41,6 @@ struct Data
     QList<Stamp> records;
 } data;
 
-QDateTime initializedTime;
 int processCount;
 QTimer checkTimer;
 QTime lastStampedTime;
@@ -75,7 +74,6 @@ void init()
     // make the directory if it doesn't exist
     QDir().mkpath("/prime/haccp");
 
-    initializedTime = QDateTime::currentDateTime();
     processCount = figureProcessCount() + 1;
 
     checkTimer.setInterval(100);
@@ -95,8 +93,6 @@ void autoStart(const QString &path)
 
 void manualStart()
 {
-    qDebug() << __FUNCTION__;
-
     initData(Manual);
     start();
 }
@@ -120,7 +116,6 @@ void engineeringStart()
 
 void done()
 {
-    qDebug() << __FUNCTION__;
     if (data.type == Invalid)
         return;
 
@@ -361,15 +356,7 @@ void initData(Type type)
     data.autoConfig.clear();
     data.washType = 0;
     data.records.clear();
-
-    if (initializedTime.isValid())
-    {
-        data.startedAt = initializedTime;
-        stampStart();
-    }
-    else
-        data.startedAt = QDateTime::currentDateTime();
-
+    data.startedAt = QDateTime::currentDateTime();
 }
 
 void start()
@@ -424,15 +411,11 @@ void stamp(QString caption)
 
 void stampStart()
 {
-    qDebug() << __FUNCTION__;
-
     stamp("START (POWER ON)");
 }
 
 void stampMode(Define::Mode mode)
 {
-    qDebug() << __FUNCTION__;
-
     switch (mode)
     {
     case Define::SteamMode:
@@ -451,30 +434,22 @@ void stampMode(Define::Mode mode)
 
 void stampFan(int fan)
 {
-    qDebug() << __FUNCTION__;
-
     lastFan = fan;
     stamp(QString("FAN = %1").arg(fan));
 }
 
 void stampDamper()
 {
-    qDebug() << __FUNCTION__;
-
     stamp("DAMPER");
 }
 
 void stampSideNozzle()
 {
-    qDebug() << __FUNCTION__;
-
     stamp("SIDE NOZZLE");
 }
 
 void stampEnd()
 {
-    qDebug() << __FUNCTION__;
-
     stamp("END");
 }
 
@@ -485,8 +460,6 @@ void stampError(QString error)
 
 void saveData()
 {
-    qDebug() << __FUNCTION__;
-
     if (data.records.isEmpty())
     {
         data.type = Invalid;
-- 
2.1.4