From 6d30c089c02591ce2f57cf22fe0c41c17c62fbc3 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 7 Jan 2021 22:19:05 +0800 Subject: chore: Remove unused codes. --- .../Models/Http/ActionContextAccessorExtensions.cs | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 BackEnd/Timeline/Models/Http/ActionContextAccessorExtensions.cs (limited to 'BackEnd/Timeline/Models') diff --git a/BackEnd/Timeline/Models/Http/ActionContextAccessorExtensions.cs b/BackEnd/Timeline/Models/Http/ActionContextAccessorExtensions.cs deleted file mode 100644 index bcc55c5a..00000000 --- a/BackEnd/Timeline/Models/Http/ActionContextAccessorExtensions.cs +++ /dev/null @@ -1,14 +0,0 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.Infrastructure; -using System; - -namespace Timeline.Models.Http -{ - public static class ActionContextAccessorExtensions - { - public static ActionContext AssertActionContextForUrlFill(this IActionContextAccessor accessor) - { - return accessor.ActionContext ?? throw new InvalidOperationException(Resources.Models.Http.Exception.ActionContextNull); - } - } -} -- cgit v1.2.3