From 441975d75ce7d11bd05f1ff8c12448553edb793b Mon Sep 17 00:00:00 2001 From: Morten Daniel Fornes Date: Tue, 15 Dec 2020 22:48:22 +0700 Subject: [PATCH] unodoc: drop unused class --- .../backend/unodoc/PackagePathProcessor.cs | 35 ------------------- .../Uno.Compiler.Backends.UnoDoc.csproj | 1 - 2 files changed, 36 deletions(-) delete mode 100644 src/compiler/backend/unodoc/PackagePathProcessor.cs diff --git a/src/compiler/backend/unodoc/PackagePathProcessor.cs b/src/compiler/backend/unodoc/PackagePathProcessor.cs deleted file mode 100644 index 3def93bee..000000000 --- a/src/compiler/backend/unodoc/PackagePathProcessor.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Collections.Generic; -using Uno.Logging; - -namespace Uno.Compiler.Backends.UnoDoc -{ - internal class PackagePathProcessor - { - Log log; - IReadOnlyList _packages; - readonly Dictionary _packagePaths = new Dictionary(); - - public PackagePathProcessor(Log log, IReadOnlyList _packages) - { - this.log = log; - this._packages = _packages; - BuildPackagePaths(); - } - - void BuildPackagePaths() - { - foreach (var p in _packages) - { - _packagePaths.Add(p.Name, p.SourceDirectory); - } - } - - public string GetPathFor(string package) - { - string path; - if (_packagePaths.TryGetValue(package, out path)) { - return path; - } else return null; - } - } -} \ No newline at end of file diff --git a/src/compiler/backend/unodoc/Uno.Compiler.Backends.UnoDoc.csproj b/src/compiler/backend/unodoc/Uno.Compiler.Backends.UnoDoc.csproj index f5f7acb72..38ba536c0 100644 --- a/src/compiler/backend/unodoc/Uno.Compiler.Backends.UnoDoc.csproj +++ b/src/compiler/backend/unodoc/Uno.Compiler.Backends.UnoDoc.csproj @@ -85,7 +85,6 @@ -