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 - } -}