REFACTOR: Remove unneeded code.

This commit is contained in:
2017-12-21 14:30:38 +00:00
parent 35ce7db892
commit dcd053b20d
343 changed files with 2842 additions and 2588 deletions

View File

@@ -32,24 +32,27 @@
using System;
using System.IO;
using System.Reflection;
using System.Web.Hosting;
using System.Web.UI;
using Velyo.AspNet.Markdown;
namespace DiscImageChef.Server
{
public partial class Default : System.Web.UI.Page
public partial class Default : Page
{
protected void Page_Load(object sender, EventArgs e)
{
MarkdownContent mkdown = new MarkdownContent();
StreamReader sr =
new StreamReader(Path.Combine(System.Web.Hosting.HostingEnvironment.MapPath("~"), "docs", "README.md"));
new StreamReader(Path.Combine(HostingEnvironment.MapPath("~"), "docs", "README.md"));
string mdcontent = sr.ReadToEnd();
sr.Close();
mkdown.Content = mdcontent.Replace(".md)", ".aspx)");
body.Controls.Add(mkdown);
lblVersion.Text = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
lblVersion.Text = Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
}
}