Skip to content

Commit 1474902

Browse files
committed
Remove redundant code
Remove redundant date locale update code, missed in previous commit (No functionality changes)
1 parent 4336fc9 commit 1474902

2 files changed

Lines changed: 0 additions & 13 deletions

File tree

WhiteCore/Framework/ConsoleFramework/CommandConsole.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -728,11 +728,6 @@ public virtual void OutputNoTime(string text, Level level)
728728
if (Threshold <= level)
729729
{
730730
MainConsole.TriggerLog(level.ToString(), text);
731-
//text = string.Format("{0}:{1}:{2}: {3}",
732-
// (DateTime.Now.Hour < 10 ? "0" + DateTime.Now.Hour : DateTime.Now.Hour.ToString()),
733-
// (DateTime.Now.Minute < 10 ? "0" + DateTime.Now.Minute : DateTime.Now.Minute.ToString()),
734-
// (DateTime.Now.Second < 10 ? "0" + DateTime.Now.Second : DateTime.Now.Second.ToString()), text);
735-
736731
Console.WriteLine(text);
737732
if (m_logFile != null)
738733
{

WhiteCore/Framework/ConsoleFramework/LocalConsole.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -364,14 +364,6 @@ private void WriteLocalText(string text, Level level)
364364
Console.WriteLine();
365365
}
366366

367-
public string LocaleDate()
368-
{
369-
string df = Culture.SystemCultureInfo.DateTimeFormat.ShortDatePattern;
370-
//string dt = DateTime.Now.ToString ("dd-MMM-yyyy",Culture.SystemCultureInfo);
371-
string dt = DateTime.Now.ToString (df);
372-
return dt;
373-
}
374-
375367
public override void Output(string text, Level level)
376368
{
377369
if (Threshold <= level)

0 commit comments

Comments
 (0)