Skip to content

Commit

Permalink
ref - Cleaned up some code
Browse files Browse the repository at this point in the history
---

Type: ref
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Oct 9, 2024
1 parent ffb6962 commit 132c011
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion VisualCard.Calendar/Parsers/VCalendarParserTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
using VisualCard.Calendar.Parts.Implementations.TimeZone;
using VisualCard.Calendar.Parts.Implementations.Todo;
using VisualCard.Calendar.Parts.Implementations.Legacy;
using System.IO;
using VisualCard.Calendar.Parts.Implementations.FreeBusy;
using VisualCard.Parsers;

Expand Down
1 change: 0 additions & 1 deletion VisualCard.Calendar/Parsers/VCalendarPartType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
using System;
using VisualCard.Calendar.Parts;
using VisualCard.Parsers.Arguments;
using VisualCard.Parts;
using VisualCard.Parts.Enums;

namespace VisualCard.Calendar.Parsers
Expand Down
2 changes: 1 addition & 1 deletion VisualCard.Calendar/Parts/Calendar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ internal BaseCalendarPartInfo[] GetPartsArray(Type partType, CalendarPartsArrayE

// Cast the values
var value = partsArray[key];
BaseCalendarPartInfo[] parts = value.ToArray();
BaseCalendarPartInfo[] parts = [.. value];

// Now, return the value
return parts;
Expand Down
2 changes: 0 additions & 2 deletions VisualCard.Extras/Misc/CardGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
using Textify.Data.NameGen;
using VisualCard.Parsers;
using VisualCard.Parts;
using VisualCard.Parts.Enums;
using VisualCard.Parts.Implementations;

namespace VisualCard.Extras.Misc
{
Expand Down
1 change: 0 additions & 1 deletion VisualCard/Parsers/VcardParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
using VisualCard.Parsers.Arguments;
using VisualCard.Parts;
using VisualCard.Parts.Enums;
using VisualCard.Parts.Implementations;

namespace VisualCard.Parsers
{
Expand Down
1 change: 0 additions & 1 deletion VisualCard/Parts/BaseCardPartInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
using System.Diagnostics;
using System.Linq;
using VisualCard.Parsers.Arguments;
using VisualCard.Parts.Comparers;

namespace VisualCard.Parts
{
Expand Down
2 changes: 1 addition & 1 deletion VisualCard/Parts/Card.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public BaseCardPartInfo[] GetPartsArray(Type partType, PartsArrayEnum key)

// Cast the values
var value = partsArray[key];
BaseCardPartInfo[] parts = value.ToArray();
BaseCardPartInfo[] parts = [.. value];

// Now, return the value
return parts;
Expand Down

0 comments on commit 132c011

Please sign in to comment.