Skip to content

Commit ff61ebd

Browse files
committed
Remove unused code
1 parent 87c6fcc commit ff61ebd

3 files changed

Lines changed: 0 additions & 67 deletions

File tree

QuartzNetWebConsole.Tests/ControllerFactoryTests.cs

Lines changed: 0 additions & 54 deletions
This file was deleted.

QuartzNetWebConsole.Tests/QuartzNetWebConsole.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
<Reference Include="System.Xml.Linq" />
5858
</ItemGroup>
5959
<ItemGroup>
60-
<Compile Include="ControllerFactoryTests.cs" />
6160
<Compile Include="DummyTrigger.cs" />
6261
<Compile Include="LimitedListTests.cs" />
6362
<Compile Include="PaginationInfoTests.cs" />

QuartzNetWebConsole/ControllerFactory.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,5 @@ public override IHttpHandler GetHandler(HttpContextBase context) {
3838
public static KeyValuePair<K, V> KV<K, V>(K key, V value) {
3939
return new KeyValuePair<K, V>(key, value);
4040
}
41-
42-
public Type GetHandlerType(string rawUrl) {
43-
var name = rawUrl.Split('/').Last().Split('?')[0].Split('.')[0];
44-
if (string.IsNullOrEmpty(name))
45-
return typeof (IndexController);
46-
47-
var typeName = string.Format("QuartzNetWebConsole.Controllers.{0}Controller", name);
48-
var type = Type.GetType(typeName, true, true);
49-
if (type == null)
50-
throw new Exception(string.Format("Type '{0}' not found", type));
51-
return type;
52-
}
5341
}
5442
}

0 commit comments

Comments
 (0)