From 8b4fb868c692e333b5125411f8d3d1a77aa2a79b Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Wed, 1 Feb 2017 15:16:32 +0100 Subject: [PATCH] cleaning --- Yavsc/ApiControllers/AccountController.cs | 2 +- Yavsc/Migrations/20170201002133_blacklisted.Designer.cs | 1 - Yavsc/Migrations/20170201002133_blacklisted.cs | 1 - Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs | 2 -- Yavsc/Models/Access/Ban.cs | 1 - Yavsc/Startup/Startup.OAuth.cs | 3 --- 6 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Yavsc/ApiControllers/AccountController.cs b/Yavsc/ApiControllers/AccountController.cs index 6a154684..bced65a7 100644 --- a/Yavsc/ApiControllers/AccountController.cs +++ b/Yavsc/ApiControllers/AccountController.cs @@ -143,7 +143,7 @@ namespace Yavsc.WebApi.Controllers } [HttpGet("~/api/myip"),Authorize] - public async Task MyIp () + public IActionResult MyIp () { string ip = null; diff --git a/Yavsc/Migrations/20170201002133_blacklisted.Designer.cs b/Yavsc/Migrations/20170201002133_blacklisted.Designer.cs index 0be7ea1f..29679be9 100644 --- a/Yavsc/Migrations/20170201002133_blacklisted.Designer.cs +++ b/Yavsc/Migrations/20170201002133_blacklisted.Designer.cs @@ -1,7 +1,6 @@ using System; using Microsoft.Data.Entity; using Microsoft.Data.Entity.Infrastructure; -using Microsoft.Data.Entity.Metadata; using Microsoft.Data.Entity.Migrations; using Yavsc.Models; diff --git a/Yavsc/Migrations/20170201002133_blacklisted.cs b/Yavsc/Migrations/20170201002133_blacklisted.cs index ec4ec74a..8f781ab8 100644 --- a/Yavsc/Migrations/20170201002133_blacklisted.cs +++ b/Yavsc/Migrations/20170201002133_blacklisted.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using Microsoft.Data.Entity.Migrations; namespace Yavsc.Migrations diff --git a/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs b/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs index 935b58d8..1c26374b 100644 --- a/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs @@ -1,8 +1,6 @@ using System; using Microsoft.Data.Entity; using Microsoft.Data.Entity.Infrastructure; -using Microsoft.Data.Entity.Metadata; -using Microsoft.Data.Entity.Migrations; using Yavsc.Models; namespace Yavsc.Migrations diff --git a/Yavsc/Models/Access/Ban.cs b/Yavsc/Models/Access/Ban.cs index c8eb902e..f1b4c3f4 100644 --- a/Yavsc/Models/Access/Ban.cs +++ b/Yavsc/Models/Access/Ban.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; diff --git a/Yavsc/Startup/Startup.OAuth.cs b/Yavsc/Startup/Startup.OAuth.cs index c5677a10..a8ee5db4 100644 --- a/Yavsc/Startup/Startup.OAuth.cs +++ b/Yavsc/Startup/Startup.OAuth.cs @@ -18,9 +18,6 @@ using OAuth.AspNet.Tokens; using Yavsc.Auth; using Yavsc.Extensions; using Yavsc.Models; -using Microsoft.Extensions.Logging; -using System.Linq; -using Newtonsoft.Json; namespace Yavsc {