Skip to content

Commit 321e201

Browse files
authored
Remove Redundant Semicolons (#9426)
1 parent 174c5d4 commit 321e201

File tree

13 files changed

+16
-16
lines changed

13 files changed

+16
-16
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ internal static void CalcGeometryAndBounds(StrokeNodeIterator iterator,
317317
// | |----| |
318318
// |------------|
319319
//
320-
prevPrevStrokeNode = iterator[index - 1, prevPrevStrokeNode.Index - 1]; ;
320+
prevPrevStrokeNode = iterator[index - 1, prevPrevStrokeNode.Index - 1];
321321
prevPrevStrokeNodeBounds = Rect.Union(prevStrokeNodeBounds, prevPrevStrokeNodeBounds);
322322

323323
// at this point prevPrevStrokeNodeBounds already contains this node

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseGestureConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
6363
string modifiersToken;
6464

6565
if (fullName.Length == 0)
66-
return new MouseGesture(MouseAction.None, ModifierKeys.None); ;
66+
return new MouseGesture(MouseAction.None, ModifierKeys.None);
6767

6868
// break apart LocalName and Prefix
6969
int Offset = fullName.LastIndexOf(MODIFIERS_DELIMITER);

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispLogic.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ internal WispLogic(InputManager inputManager)
3333
{
3434
Statistics.FeaturesUsed |= StylusTraceLogger.FeatureFlags.WispStackEnabled;
3535

36-
_inputManager = new SecurityCriticalData<InputManager>(inputManager); ;
36+
_inputManager = new SecurityCriticalData<InputManager>(inputManager);
3737
_inputManager.Value.PreProcessInput += new PreProcessInputEventHandler(PreProcessInput);
3838
_inputManager.Value.PreNotifyInput += new NotifyInputEventHandler(PreNotifyInput);
3939
_inputManager.Value.PostProcessInput += new ProcessInputEventHandler(PostProcessInput);
@@ -885,7 +885,7 @@ private void PreProcessInput(object sender, PreProcessInputEventArgs e)
885885
else if (input.Report.Type == InputType.Stylus)
886886
{
887887
RawStylusInputReport stylusInputReport = (RawStylusInputReport)input.Report;
888-
WispStylusDevice stylusDevice = stylusInputReport?.StylusDevice?.As<WispStylusDevice>(); ; // RTI sets this if it finds StylusDevice based on Id.
888+
WispStylusDevice stylusDevice = stylusInputReport?.StylusDevice?.As<WispStylusDevice>(); // RTI sets this if it finds StylusDevice based on Id.
889889
bool cancelInput = true; // Only process if we see we have valid input data.
890890

891891
if (stylusInputReport.InputSource != null && stylusInputReport.PenContext != null)

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndTarget.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2037,7 +2037,7 @@ internal static bool IsPerMonitorDpiScalingSupportedOnCurrentPlatform
20372037
{
20382038
get
20392039
{
2040-
return OSVersionHelper.IsOsWindows10RS1OrGreater; ;
2040+
return OSVersionHelper.IsOsWindows10RS1OrGreater;
20412041
}
20422042
}
20432043

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontFamilyConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
126126

127127
return new FontFamily(baseUri, s);
128128
}
129-
return base.ConvertFrom(context, cultureInfo, o); ;
129+
return base.ConvertFrom(context, cultureInfo, o);
130130
}
131131

132132
/// <summary>

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/PresentationSource.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public static void RemoveSourceChangedHandler(IInputElement e, SourceChangedEven
220220
}
221221
if (info == null || info.Count == 0)
222222
{
223-
uie.VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(uie.OnVisualAncestorChanged); ;
223+
uie.VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(uie.OnVisualAncestorChanged);
224224
RemoveElementFromWatchList(uie);
225225
}
226226
}
@@ -234,7 +234,7 @@ public static void RemoveSourceChangedHandler(IInputElement e, SourceChangedEven
234234
}
235235
if (info == null || info.Count == 0)
236236
{
237-
uie3D.VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(uie3D.OnVisualAncestorChanged); ;
237+
uie3D.VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(uie3D.OnVisualAncestorChanged);
238238
RemoveElementFromWatchList(uie3D);
239239
}
240240
}

src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/Journaling.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ protected JournalEntryPageFunction(SerializationInfo info, StreamingContext cont
272272
: base(info, context)
273273
{
274274
_pageFunctionId = (Guid)info.GetValue("_pageFunctionId", typeof(Guid));
275-
_parentPageFunctionId = (Guid)info.GetValue("_parentPageFunctionId", typeof(Guid)); ;
275+
_parentPageFunctionId = (Guid)info.GetValue("_parentPageFunctionId", typeof(Guid));
276276
}
277277

278278
//

src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextAdaptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ internal Rect[] GetBoundingRectangles(ITextPointer start, ITextPointer end, bool
103103
{
104104
if (!textView.Contains(start) && start.CompareTo(textSegments[0].Start) < 0)
105105
{
106-
start = textSegments[0].Start.CreatePointer(); ;
106+
start = textSegments[0].Start.CreatePointer();
107107
}
108108
if (!textView.Contains(end) && end.CompareTo(textSegments[textSegments.Count-1].End) > 0)
109109
{

src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RtfToXamlReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8641,7 +8641,7 @@ internal void ProcessImage(FormatState formatState)
86418641
{
86428642
// Read the windows metafile from the rtf content and then convert it
86438643
// to bitmap data then save it as PNG on the container image part
8644-
MemoryStream metafileStream = new MemoryStream(); ;
8644+
MemoryStream metafileStream = new MemoryStream();
86458645

86468646
using (metafileStream)
86478647
{

src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSelection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,12 +841,12 @@ void ITextSelection.ExtendSelectionByMouse(ITextPointer cursorPosition, bool for
841841
if (anchorWordRange.Start.CompareTo(cursorWordRange.Start) <= 0)
842842
{
843843
startPosition = anchorWordRange.Start.GetFrozenPointer(LogicalDirection.Forward);
844-
movingPosition = cursorWordRange.End.GetFrozenPointer(LogicalDirection.Backward); ;
844+
movingPosition = cursorWordRange.End.GetFrozenPointer(LogicalDirection.Backward);
845845
}
846846
else
847847
{
848848
startPosition = anchorWordRange.End.GetFrozenPointer(LogicalDirection.Backward);
849-
movingPosition = cursorWordRange.Start.GetFrozenPointer(LogicalDirection.Forward); ;
849+
movingPosition = cursorWordRange.Start.GetFrozenPointer(LogicalDirection.Forward);
850850
}
851851

852852
// Note that we use includeCellAtMovingPosition=true because we want that hit-tested table cell

0 commit comments

Comments
 (0)