From c559a51ad460a3cd50f51371cde0685718a6eeb5 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Fri, 4 Nov 2016 12:18:15 +0100 Subject: [PATCH] cleans using clauses --- Yavsc/ApiControllers/AccountController.cs | 18 +++++++----------- Yavsc/ApiControllers/ChatApiController.cs | 2 -- Yavsc/Controllers/FrontOfficeController.cs | 1 - Yavsc/Hubs/ChatHub.cs | 5 ++--- Yavsc/Model/Messaging/ClientProviderInfo.cs | 1 - 5 files changed, 9 insertions(+), 18 deletions(-) diff --git a/Yavsc/ApiControllers/AccountController.cs b/Yavsc/ApiControllers/AccountController.cs index 9bb41447..dcb3d8b4 100644 --- a/Yavsc/ApiControllers/AccountController.cs +++ b/Yavsc/ApiControllers/AccountController.cs @@ -1,20 +1,16 @@ -using System.Threading.Tasks; -using Microsoft.AspNet.Identity; +using Microsoft.AspNet.Identity; using Microsoft.AspNet.Authorization; -using Yavsc.Models; -using Yavsc.Models.Account; using Microsoft.AspNet.Mvc; -using Yavsc.ViewModels.Account; -using System.Security.Claims; using Microsoft.Extensions.Logging; -using Yavsc.Models.Auth; -using System.Collections.Generic; -using static Yavsc.ChatHub; -using Microsoft.Data.Entity; -using System.Linq; +using System.Security.Claims; +using System.Threading.Tasks; namespace Yavsc.WebApi.Controllers { + using Models; + using Models.Account; + using ViewModels.Account; + using Models.Auth; [Authorize,Route("~/api/account")] public class ApiAccountController : Controller diff --git a/Yavsc/ApiControllers/ChatApiController.cs b/Yavsc/ApiControllers/ChatApiController.cs index 36317bf2..9b5f83fb 100644 --- a/Yavsc/ApiControllers/ChatApiController.cs +++ b/Yavsc/ApiControllers/ChatApiController.cs @@ -1,8 +1,6 @@ -using System; using System.Collections.Generic; using System.Linq; -using Microsoft.AspNet.Authorization; using Microsoft.AspNet.Mvc; using Microsoft.Data.Entity; diff --git a/Yavsc/Controllers/FrontOfficeController.cs b/Yavsc/Controllers/FrontOfficeController.cs index 68a94843..218bacb8 100644 --- a/Yavsc/Controllers/FrontOfficeController.cs +++ b/Yavsc/Controllers/FrontOfficeController.cs @@ -7,7 +7,6 @@ using Microsoft.Data.Entity; using Microsoft.Extensions.Logging; using Yavsc.Models.Booking; using Yavsc.Helpers; -using Yavsc.Models.Billing; using System; namespace Yavsc.Controllers diff --git a/Yavsc/Hubs/ChatHub.cs b/Yavsc/Hubs/ChatHub.cs index 4cb49f04..21e2e4b2 100644 --- a/Yavsc/Hubs/ChatHub.cs +++ b/Yavsc/Hubs/ChatHub.cs @@ -18,12 +18,11 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . -using System.Threading.Tasks; using Microsoft.AspNet.SignalR; +using Microsoft.Data.Entity; +using System.Threading.Tasks; using System.Collections.Generic; using System.Linq; -using System; -using Microsoft.Data.Entity; namespace Yavsc { diff --git a/Yavsc/Model/Messaging/ClientProviderInfo.cs b/Yavsc/Model/Messaging/ClientProviderInfo.cs index bb9807fc..cec01e02 100644 --- a/Yavsc/Model/Messaging/ClientProviderInfo.cs +++ b/Yavsc/Model/Messaging/ClientProviderInfo.cs @@ -1,6 +1,5 @@ using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; namespace Yavsc.Model { public class ClientProviderInfo