Skip to content

Commit

Permalink
make helper methods private
Browse files Browse the repository at this point in the history
  • Loading branch information
siblount committed Dec 24, 2023
1 parent 5c43a15 commit 13d41ec
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/DAZ_Installer.Core/DPDazFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// You may find a full copy of this license at root project directory\LICENSE

using Serilog;
using DAZ_Installer.IO;

namespace DAZ_Installer.Core
{
Expand All @@ -28,7 +27,7 @@ public void ReadContents(StreamReader stream)
/// Parses through the content info and updates the <c>ContentInfo</c> struct. Only reads lines 1 - 8.
/// </summary>
/// <param name="contents">A collection of strings.</param>
public void UpdateContentInfo(ReadOnlySpan<string?> contents)
private void UpdateContentInfo(ReadOnlySpan<string?> contents)
{
// 1..9
foreach (var line in contents.Slice(1, 9))
Expand All @@ -45,12 +44,11 @@ public void UpdateContentInfo(ReadOnlySpan<string?> contents)
catch (Exception e)
{
Logger.Error(e, "Failed to add metadata for file: {0}");
// DPCommon.WriteToLog($"Failed to add metadata for file: {RelativePath} REASON: {e}");
}
}
}

public static string ParseJsonValue(ReadOnlySpan<char> jsonString)
private static string ParseJsonValue(ReadOnlySpan<char> jsonString)
{
var colIndex = jsonString.IndexOf(':');
if (colIndex == -1) return string.Empty;
Expand All @@ -65,7 +63,7 @@ public static string ParseJsonValue(ReadOnlySpan<char> jsonString)
return afterColString.Slice(startSearchIndex + 1, lastQuoteIndex - startSearchIndex - 1).ToString();
}

public static ReadOnlySpan<char> GetPropertyName(ReadOnlySpan<char> msg)
private static ReadOnlySpan<char> GetPropertyName(ReadOnlySpan<char> msg)
{
var colonIndex = msg.IndexOf(':');
if (colonIndex == -1) return string.Empty;
Expand Down

0 comments on commit 13d41ec

Please sign in to comment.