Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Commit

Permalink
Remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremySkinner committed Oct 19, 2010
1 parent 4ef1a0c commit 6335828
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions GitAspx/Helpers.cs
Expand Up @@ -32,17 +32,6 @@ public static class Helpers {
urlHelper.RequestContext.HttpContext.Request.Url.Host);
}

public static string GetDescription(this Enum e) {
var field = e.GetType().GetField(e.ToString());
var attributes = (DescriptionAttribute[]) field.GetCustomAttributes(typeof (DescriptionAttribute), false);

if (attributes.Length > 0) {
return attributes[0].Description;
}

return e.ToString();
}

public static string ToPrettyDateString(this DateTime d) {
TimeSpan s = DateTime.Now.Subtract(d);
int dayDiff = (int)s.TotalDays;
Expand Down Expand Up @@ -80,6 +69,7 @@ public static class Helpers {
return null;
}


public static string With(this string format, params string[] args) {
return string.Format(format, args);
}
Expand Down

0 comments on commit 6335828

Please sign in to comment.