From 55c4be514f9198880a7b081b78d850c6fa709532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0r=C3=A1mek?= Date: Sun, 17 Dec 2017 06:11:11 -0800 Subject: [PATCH] Removed PolylineDecoderBase file --- .../PolylineDecoderBase.cs | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 src/Cloudikka.PolylineAlgorithm/Cloudikka.PolylineAlgorithm/PolylineDecoderBase.cs diff --git a/src/Cloudikka.PolylineAlgorithm/Cloudikka.PolylineAlgorithm/PolylineDecoderBase.cs b/src/Cloudikka.PolylineAlgorithm/Cloudikka.PolylineAlgorithm/PolylineDecoderBase.cs deleted file mode 100644 index 09626f55..00000000 --- a/src/Cloudikka.PolylineAlgorithm/Cloudikka.PolylineAlgorithm/PolylineDecoderBase.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -// Copyright (c) Petr Šrámek. All rights reserved. -// Licensed under the MIT License. See LICENSE file in the project root for full license information. -// - -namespace Cloudikka.PolylineAlgorithm { - using System; - using System.Collections.Generic; - using System.Linq; - - /// - /// Defines the - /// - /// - public abstract class PolylineDecoderBase : IPolylineDecoder { - #region Methods - - /// - /// The Decode - /// - /// The - /// The - public IEnumerable Decode(string source) { - if (String.IsNullOrEmpty(source)) { - throw new ArgumentException(ExceptionMessageResource.SourcePolylineStringCannotBeNullOrEmpty, nameof(source)); - } - - char[] polyline = source.ToCharArray(); - - return PolylineAlgorithm.Decode(polyline) - .Select(c => CreateResult(c.Latitude, c.Longitude)); - } - - /// - /// The CreateResult - /// - /// The - /// The - /// The - protected abstract TOut CreateResult(double latitude, double longitude); - - #endregion - } -}