Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit d861307

Browse files
committed
Fix unused field warnings
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
1 parent 1361109 commit d861307

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/mscorlib/shared/System/Globalization/DateTimeFormatInfo.cs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -339,13 +339,6 @@ private void InitializeOverridableProperties(CultureData cultureData, CalendarId
339339
Debug.Assert(this.allYearMonthPatterns.Length > 0, "[DateTimeFormatInfo.Populate] Expected some year month patterns");
340340
}
341341

342-
private bool _useUserOverride;
343-
344-
// This was synthesized by Whidbey so we knew what words might appear in the middle of a date string
345-
// Now we always synthesize so its not helpful
346-
347-
internal String[] m_dateWords = null;
348-
349342
// Returns a default DateTimeFormatInfo that will be universally
350343
// supported and constant irrespective of the current culture.
351344
// Used by FromString methods.
@@ -1086,13 +1079,6 @@ internal String GeneralLongTimePattern
10861079
** concatation every time somebody uses this form
10871080
==============================================================================*/
10881081

1089-
/*=================================DateTimeOffsetPattern==========================
1090-
**Property: Return the default pattern DateTimeOffset : shortDate + long time + time zone offset
1091-
**Note: This is used by DateTimeFormat.cs to get the pattern for short Date + long time + time zone offset
1092-
** We put this internal property here so that we can avoid doing the
1093-
** concatation every time somebody uses this form
1094-
==============================================================================*/
1095-
10961082
internal String DateTimeOffsetPattern
10971083
{
10981084
get
@@ -2360,7 +2346,7 @@ internal TokenHashValue[] CreateTokenHashTable()
23602346

23612347
// We need to rescan the date words since we're always synthetic
23622348
scanner = new DateTimeFormatInfoScanner();
2363-
m_dateWords = dateWords = scanner.GetDateWordsOfDTFI(this);
2349+
dateWords = scanner.GetDateWordsOfDTFI(this);
23642350
// Ensure the formatflags is initialized.
23652351
DateTimeFormatFlags flag = FormatFlags;
23662352

0 commit comments

Comments
 (0)