diff --git a/src/Avalonia.Visuals/Media/EllipseGeometry.cs b/src/Avalonia.Visuals/Media/EllipseGeometry.cs
index e233eab496..ca84d4cc7b 100644
--- a/src/Avalonia.Visuals/Media/EllipseGeometry.cs
+++ b/src/Avalonia.Visuals/Media/EllipseGeometry.cs
@@ -88,7 +88,5 @@ namespace Avalonia.Media
return geometry;
}
-
- private void RectChanged(AvaloniaPropertyChangedEventArgs e) => InvalidateGeometry();
}
}
diff --git a/src/Avalonia.Visuals/Media/Geometry.cs b/src/Avalonia.Visuals/Media/Geometry.cs
index 6aff70624d..17c0d2ab74 100644
--- a/src/Avalonia.Visuals/Media/Geometry.cs
+++ b/src/Avalonia.Visuals/Media/Geometry.cs
@@ -89,7 +89,7 @@ namespace Avalonia.Media
/// true if the geometry contains the point; otherwise, false.
public bool FillContains(Point point)
{
- return PlatformImpl?.FillContains(point) ?? false;
+ return PlatformImpl?.FillContains(point) == true;
}
///
@@ -100,7 +100,7 @@ namespace Avalonia.Media
/// true if the geometry contains the point; otherwise, false.
public bool StrokeContains(Pen pen, Point point)
{
- return PlatformImpl?.StrokeContains(pen, point) ?? false;
+ return PlatformImpl?.StrokeContains(pen, point) == true;
}
///
diff --git a/src/Avalonia.Visuals/Media/PathGeometry.cs b/src/Avalonia.Visuals/Media/PathGeometry.cs
index 3e27d8a461..ecda07ada1 100644
--- a/src/Avalonia.Visuals/Media/PathGeometry.cs
+++ b/src/Avalonia.Visuals/Media/PathGeometry.cs
@@ -23,8 +23,8 @@ namespace Avalonia.Media
AvaloniaProperty.Register(nameof(FillRule));
private PathFigures _figures;
- private IDisposable _figuresObserver = null;
- private IDisposable _figuresPropertiesObserver = null;
+ private IDisposable _figuresObserver;
+ private IDisposable _figuresPropertiesObserver;
static PathGeometry()
{