From 61839ca239ad2893d45b12592440a686dc13e064 Mon Sep 17 00:00:00 2001 From: Uncled1023 Date: Tue, 10 Jan 2017 12:31:09 -0800 Subject: [PATCH] Fixed missing references --- Teknik/Helpers/StringExtensions.cs | 40 ------------------------------ Teknik/Teknik.csproj | 1 - Teknik/Views/Shared/_Footer.cshtml | 2 +- 3 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 Teknik/Helpers/StringExtensions.cs diff --git a/Teknik/Helpers/StringExtensions.cs b/Teknik/Helpers/StringExtensions.cs deleted file mode 100644 index a272d3d..0000000 --- a/Teknik/Helpers/StringExtensions.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Web; - -namespace Teknik.Helpers -{ - public static class StringExtensions - { - public static string Truncate(this string value, int maxLength) - { - if (string.IsNullOrEmpty(value)) return value; - return value.Length <= maxLength ? value : value.Substring(0, maxLength); - } - - public static string AddStringAtInterval(this string value, int interval, string insertStr) - { - if (interval <= 0 || value.Length < interval) - return value; - - StringBuilder sb = new StringBuilder(); - - int finalIndex = 0; - for (int i = 0; i < value.Length; i = i + interval) - { - sb.Append(value.Substring(i, interval)); - sb.Append(insertStr); - finalIndex = i; - } - - if (finalIndex + interval != value.Length) - { - sb.Append(value.Substring(finalIndex, value.Length - finalIndex)); - } - - return sb.ToString(); - } - } -} \ No newline at end of file diff --git a/Teknik/Teknik.csproj b/Teknik/Teknik.csproj index 7389c3c..98a2171 100644 --- a/Teknik/Teknik.csproj +++ b/Teknik/Teknik.csproj @@ -326,7 +326,6 @@ - diff --git a/Teknik/Views/Shared/_Footer.cshtml b/Teknik/Views/Shared/_Footer.cshtml index efe777c..0ade751 100644 --- a/Teknik/Views/Shared/_Footer.cshtml +++ b/Teknik/Views/Shared/_Footer.cshtml @@ -1,6 +1,6 @@ @using System.Diagnostics; @using System.Reflection; -@using Teknik.Helpers; +@using Teknik.Utilities; @{ string redbubblePath = "/Images/redbubble_icon.png";