diff --git a/TestClient/MainForm.cs b/TestClient/MainForm.cs
index a9ec8f9..630b95f 100644
--- a/TestClient/MainForm.cs
+++ b/TestClient/MainForm.cs
@@ -232,77 +232,6 @@ namespace TestClient
}), "");
});
}
-#if false
- ///
- /// Task x AUTH
- ///
- ///
- private async Task doOAuthCycle()
- {
- StringBuilder sb = new StringBuilder();
- // fino a quanod NON รจ auth --> cicla...
- while (!reqStatus.isHmiEnrolled && doAuthSemap)
- {
- await Task.Run(() =>
- {
- synchronizationContext.Post(new SendOrPostCallback(o =>
- {
- sb = new StringBuilder();
- sb.AppendLine("--------------------------------------------------");
- sb.AppendLine(string.Format("{0:HH.mm.ss.fff} | Try OAuth process", DateTime.Now));
- lblConsole.Text = sb.ToString();
- }), "");
-
- userAuthData authData = MCC.tryAuthorize();
- // recupero nuova reqStatus...
- reqStatus = MCC.reqStatusUpd;
-
- synchronizationContext.Post(new SendOrPostCallback(o =>
- {
- // mostro i dati SPECIFICI x AUTH...
- updateAuthData(authData);
- // refresh...
- sb = new StringBuilder();
- sb.AppendLine(">>>");
- sb.AppendLine(string.Format("{0:HH.mm.ss.fff} | END", DateTime.Now));
- sb.AppendLine("--------------------------------------------------");
- lblConsole.Text += sb.ToString();
- }), "");
-
- // mi fermo...
- Thread.Sleep(500);
- });
- }
- if (reqStatus.isHmiEnrolled)
- {
- // indico che ho concluso
- sb = new StringBuilder();
- sb.AppendLine("--------------------------------------------------");
- sb.AppendLine(string.Format("{0:HH.mm.ss.fff} | Auth + enroll DONE", DateTime.Now));
- sb.AppendLine("--------------------------------------------------");
-
- synchronizationContext.Post(new SendOrPostCallback(o =>
- {
- lblConsole.Text = sb.ToString();
- refreshRequestStatus();
- }), "");
- }
- else
- {
- // indico che ho concluso
- sb = new StringBuilder();
- sb.AppendLine("--------------------------------------------------");
- sb.AppendLine(string.Format("{0:HH.mm.ss.fff} | FORCE RESET", DateTime.Now));
- sb.AppendLine("--------------------------------------------------");
- synchronizationContext.Post(new SendOrPostCallback(o =>
- {
- lblConsole.Text = sb.ToString();
- }), "");
- resetAuthData();
- }
- doAuthSemap = false;
- }
-#endif
///
/// Recupero OrgCode
///