From 772f6ad94d2b828dbbc914fa1aef2deff13e1e99 Mon Sep 17 00:00:00 2001 From: Mask Date: Wed, 1 Sep 2021 17:24:50 +0300 Subject: [PATCH] Removed unnecessary comment templates --- .../.idea/.gitignore | 10 +++ .../.idea/.name | 1 + .../.idea/encodings.xml | 4 ++ .../.idea/indexLayout.xml | 8 +++ .../.idea/vcs.xml | 6 ++ .../XmlElementContext.cs | 32 +-------- .../XmlElementCounter.cs | 49 +------------- .../Platform.Data.Doublets.Xml/XmlExporter.cs | 8 +-- .../Platform.Data.Doublets.Xml/XmlImporter.cs | 65 +------------------ .../Platform.Data.Doublets.Xml/XmlIndexer.cs | 51 +-------------- 10 files changed, 39 insertions(+), 195 deletions(-) create mode 100644 .idea/.idea.Platform.Data.Doublets.Xml/.idea/.gitignore create mode 100644 .idea/.idea.Platform.Data.Doublets.Xml/.idea/.name create mode 100644 .idea/.idea.Platform.Data.Doublets.Xml/.idea/encodings.xml create mode 100644 .idea/.idea.Platform.Data.Doublets.Xml/.idea/indexLayout.xml create mode 100644 .idea/.idea.Platform.Data.Doublets.Xml/.idea/vcs.xml diff --git a/.idea/.idea.Platform.Data.Doublets.Xml/.idea/.gitignore b/.idea/.idea.Platform.Data.Doublets.Xml/.idea/.gitignore new file mode 100644 index 0000000..ded943a --- /dev/null +++ b/.idea/.idea.Platform.Data.Doublets.Xml/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/.idea.Platform.Data.Doublets.Xml.iml +/modules.xml +/projectSettingsUpdater.xml +/contentModel.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/.idea.Platform.Data.Doublets.Xml/.idea/.name b/.idea/.idea.Platform.Data.Doublets.Xml/.idea/.name new file mode 100644 index 0000000..da195ae --- /dev/null +++ b/.idea/.idea.Platform.Data.Doublets.Xml/.idea/.name @@ -0,0 +1 @@ +Platform.Data.Doublets.Xml \ No newline at end of file diff --git a/.idea/.idea.Platform.Data.Doublets.Xml/.idea/encodings.xml b/.idea/.idea.Platform.Data.Doublets.Xml/.idea/encodings.xml new file mode 100644 index 0000000..df87cf9 --- /dev/null +++ b/.idea/.idea.Platform.Data.Doublets.Xml/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/.idea.Platform.Data.Doublets.Xml/.idea/indexLayout.xml b/.idea/.idea.Platform.Data.Doublets.Xml/.idea/indexLayout.xml new file mode 100644 index 0000000..7b08163 --- /dev/null +++ b/.idea/.idea.Platform.Data.Doublets.Xml/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/.idea.Platform.Data.Doublets.Xml/.idea/vcs.xml b/.idea/.idea.Platform.Data.Doublets.Xml/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/.idea.Platform.Data.Doublets.Xml/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/csharp/Platform.Data.Doublets.Xml/XmlElementContext.cs b/csharp/Platform.Data.Doublets.Xml/XmlElementContext.cs index cb3d2d4..cabad8c 100644 --- a/csharp/Platform.Data.Doublets.Xml/XmlElementContext.cs +++ b/csharp/Platform.Data.Doublets.Xml/XmlElementContext.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member +#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member namespace Platform.Data.Doublets.Xml { @@ -12,39 +12,11 @@ namespace Platform.Data.Doublets.Xml /// internal class XmlElementContext { - /// - /// - /// The children names counts. - /// - /// - /// - public readonly Dictionary ChildrenNamesCounts; - /// - /// - /// The total children. - /// - /// - /// + public readonly Dictionary ChildrenNamesCounts; public int TotalChildren; - /// - /// - /// Initializes a new instance. - /// - /// - /// public XmlElementContext() => ChildrenNamesCounts = new Dictionary(); - /// - /// - /// Increments the child name count using the specified name. - /// - /// - /// - /// - /// The name. - /// - /// public void IncrementChildNameCount(string name) { if (ChildrenNamesCounts.TryGetValue(name, out int count)) diff --git a/csharp/Platform.Data.Doublets.Xml/XmlElementCounter.cs b/csharp/Platform.Data.Doublets.Xml/XmlElementCounter.cs index 9965132..03336ac 100644 --- a/csharp/Platform.Data.Doublets.Xml/XmlElementCounter.cs +++ b/csharp/Platform.Data.Doublets.Xml/XmlElementCounter.cs @@ -64,29 +64,7 @@ public Task Count(string file, string elementName, CancellationToken token) } }, token); } - - /// - /// - /// Counts the reader. - /// - /// - /// - /// - /// The reader. - /// - /// - /// - /// The element name to count. - /// - /// - /// - /// The token. - /// - /// - /// - /// The context. - /// - /// + private void Count(XmlReader reader, string elementNameToCount, CancellationToken token, XmlElementContext context) { var rootContext = (RootElementContext)context; @@ -146,30 +124,9 @@ private void Count(XmlReader reader, string elementNameToCount, CancellationToke } } } - - /// - /// - /// Returns the x path using the specified path. - /// - /// - /// - /// - /// The path. - /// - /// - /// - /// The string - /// - /// + private string ToXPath(Stack path) => string.Join("/", path.Reverse()); - - /// - /// - /// Represents the root element context. - /// - /// - /// - /// + private class RootElementContext : XmlElementContext { /// diff --git a/csharp/Platform.Data.Doublets.Xml/XmlExporter.cs b/csharp/Platform.Data.Doublets.Xml/XmlExporter.cs index eb185c5..38158fd 100644 --- a/csharp/Platform.Data.Doublets.Xml/XmlExporter.cs +++ b/csharp/Platform.Data.Doublets.Xml/XmlExporter.cs @@ -16,14 +16,8 @@ namespace Platform.Data.Doublets.Xml /// /// /// - class XmlExporter + public class XmlExporter { - /// - /// - /// The storage. - /// - /// - /// private readonly IXmlStorage _storage; /// diff --git a/csharp/Platform.Data.Doublets.Xml/XmlImporter.cs b/csharp/Platform.Data.Doublets.Xml/XmlImporter.cs index 89ba88b..1d7e466 100644 --- a/csharp/Platform.Data.Doublets.Xml/XmlImporter.cs +++ b/csharp/Platform.Data.Doublets.Xml/XmlImporter.cs @@ -19,12 +19,6 @@ namespace Platform.Data.Doublets.Xml { /// public class XmlImporter { - /// - /// - /// The storage. - /// - /// - /// private readonly IXmlStorage _storage; /// @@ -73,25 +67,7 @@ public Task Import(string file, CancellationToken token) }, token); } - - /// - /// - /// Reads the reader. - /// - /// - /// - /// - /// The reader. - /// - /// - /// - /// The token. - /// - /// - /// - /// The context. - /// - /// + private void Read(XmlReader reader, CancellationToken token, ElementContext context) { var parentContexts = new Stack(); @@ -146,49 +122,12 @@ private void Read(XmlReader reader, CancellationToken token, ElementContext cont } } - /// - /// - /// Returns the x path using the specified path. - /// - /// - /// - /// - /// The path. - /// - /// - /// - /// The string - /// - /// private string ToXPath(Stack path) => string.Join("/", path.Reverse()); - /// - /// - /// Represents the element context. - /// - /// - /// - /// + private class ElementContext : XmlElementContext { - /// - /// - /// The parent. - /// - /// - /// public readonly TLink Parent; - - /// - /// - /// Initializes a new instance. - /// - /// - /// - /// - /// A parent. - /// - /// public ElementContext(TLink parent) => Parent = parent; } } diff --git a/csharp/Platform.Data.Doublets.Xml/XmlIndexer.cs b/csharp/Platform.Data.Doublets.Xml/XmlIndexer.cs index 2fc4dbc..ee0085c 100644 --- a/csharp/Platform.Data.Doublets.Xml/XmlIndexer.cs +++ b/csharp/Platform.Data.Doublets.Xml/XmlIndexer.cs @@ -20,48 +20,11 @@ namespace Platform.Data.Doublets.Xml /// public class XmlIndexer : IXmlStorage { - /// - /// - /// The zero. - /// - /// - /// private static readonly TLink _zero = default; - /// - /// - /// The zero. - /// - /// - /// private static readonly TLink _one = Arithmetic.Increment(_zero); - - /// - /// - /// The index. - /// - /// - /// private readonly CachedFrequencyIncrementingSequenceIndex _index; - /// - /// - /// The char to unicode symbol converter. - /// - /// - /// private readonly CharToUnicodeSymbolConverter _charToUnicodeSymbolConverter; - /// - /// - /// The unicode symbol marker. - /// - /// - /// private TLink _unicodeSymbolMarker; - /// - /// - /// The null constant. - /// - /// - /// private readonly TLink _nullConstant; /// @@ -92,17 +55,7 @@ public XmlIndexer(ILinks links) InitConstants(links); _charToUnicodeSymbolConverter = new CharToUnicodeSymbolConverter(links, addressToRawNumberConverter, _unicodeSymbolMarker); } - - /// - /// - /// Inits the constants using the specified links. - /// - /// - /// - /// - /// The links. - /// - /// + private void InitConstants(ILinks links) { var markerIndex = _one; @@ -303,7 +256,7 @@ public TLink GetTextElement(string content) /// A list of i list t link /// /// - public IList> GetChildren(TLink parent) + public IList GetChildren(TLink parent) { throw new System.NotImplementedException(); }