From 897a0dc8486c4dfa9d0375b3355c2c45a95bc2b0 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 15 Aug 2024 11:45:39 +0200 Subject: [PATCH] =?UTF-8?q?Unn=C3=B6tige=20Usings=20gel=C3=B6scht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bibtalk/bib-talk/Business/LoginManager.cs | 5 ----- bibtalk/bib-talk/Business/MainWindowManager.cs | 6 +----- bibtalk/bib-talk/Business/Message.cs | 4 ---- bibtalk/bib-talk/Business/MessageDto.cs | 4 ---- bibtalk/bib-talk/Business/RegisterManager.cs | 5 ----- bibtalk/bib-talk/Business/User.cs | 8 +------- bibtalk/bib-talk/Repository/LoginDatabase.cs | 4 ---- bibtalk/bib-talk/Repository/MainWindowDatabase.cs | 2 -- bibtalk/bib-talk/Repository/RegisterDatabase.cs | 4 ---- bibtalk/bib-talk/UI/Login.xaml.cs | 7 +------ bibtalk/bib-talk/UI/MainWindow.xaml.cs | 13 +------------ bibtalk/bib-talk/UI/RegisterWindow.xaml.cs | 14 +------------- 12 files changed, 5 insertions(+), 71 deletions(-) diff --git a/bibtalk/bib-talk/Business/LoginManager.cs b/bibtalk/bib-talk/Business/LoginManager.cs index 2ae823e..e711d6a 100644 --- a/bibtalk/bib-talk/Business/LoginManager.cs +++ b/bibtalk/bib-talk/Business/LoginManager.cs @@ -1,9 +1,4 @@ using bib_talk.Repository; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace bib_talk.Business { diff --git a/bibtalk/bib-talk/Business/MainWindowManager.cs b/bibtalk/bib-talk/Business/MainWindowManager.cs index 96f50b9..9b137ba 100644 --- a/bibtalk/bib-talk/Business/MainWindowManager.cs +++ b/bibtalk/bib-talk/Business/MainWindowManager.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Threading.Tasks; using bib_talk.Repository; namespace bib_talk.Business diff --git a/bibtalk/bib-talk/Business/Message.cs b/bibtalk/bib-talk/Business/Message.cs index 44d709b..5d94fdc 100644 --- a/bibtalk/bib-talk/Business/Message.cs +++ b/bibtalk/bib-talk/Business/Message.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace bib_talk.Business { diff --git a/bibtalk/bib-talk/Business/MessageDto.cs b/bibtalk/bib-talk/Business/MessageDto.cs index 5e05474..46fddf2 100644 --- a/bibtalk/bib-talk/Business/MessageDto.cs +++ b/bibtalk/bib-talk/Business/MessageDto.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace bib_talk.Business { diff --git a/bibtalk/bib-talk/Business/RegisterManager.cs b/bibtalk/bib-talk/Business/RegisterManager.cs index 7cb383e..893a25a 100644 --- a/bibtalk/bib-talk/Business/RegisterManager.cs +++ b/bibtalk/bib-talk/Business/RegisterManager.cs @@ -1,9 +1,4 @@ using bib_talk.Repository; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace bib_talk.Business { diff --git a/bibtalk/bib-talk/Business/User.cs b/bibtalk/bib-talk/Business/User.cs index a17fed9..493f553 100644 --- a/bibtalk/bib-talk/Business/User.cs +++ b/bibtalk/bib-talk/Business/User.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace bib_talk.Business +namespace bib_talk.Business { public class User { diff --git a/bibtalk/bib-talk/Repository/LoginDatabase.cs b/bibtalk/bib-talk/Repository/LoginDatabase.cs index ee2fd9c..b75737f 100644 --- a/bibtalk/bib-talk/Repository/LoginDatabase.cs +++ b/bibtalk/bib-talk/Repository/LoginDatabase.cs @@ -1,11 +1,7 @@ using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; -using System.Windows.Controls; using System.Windows; namespace bib_talk.Repository diff --git a/bibtalk/bib-talk/Repository/MainWindowDatabase.cs b/bibtalk/bib-talk/Repository/MainWindowDatabase.cs index 6cbb901..9bd16d1 100644 --- a/bibtalk/bib-talk/Repository/MainWindowDatabase.cs +++ b/bibtalk/bib-talk/Repository/MainWindowDatabase.cs @@ -2,9 +2,7 @@ using Newtonsoft.Json; using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; -using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; diff --git a/bibtalk/bib-talk/Repository/RegisterDatabase.cs b/bibtalk/bib-talk/Repository/RegisterDatabase.cs index e8ea303..460b890 100644 --- a/bibtalk/bib-talk/Repository/RegisterDatabase.cs +++ b/bibtalk/bib-talk/Repository/RegisterDatabase.cs @@ -1,11 +1,7 @@ using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; -using System.Windows.Controls; using System.Windows; namespace bib_talk.Repository diff --git a/bibtalk/bib-talk/UI/Login.xaml.cs b/bibtalk/bib-talk/UI/Login.xaml.cs index 0ac77f5..f50d7a8 100644 --- a/bibtalk/bib-talk/UI/Login.xaml.cs +++ b/bibtalk/bib-talk/UI/Login.xaml.cs @@ -1,12 +1,7 @@ -using Newtonsoft.Json; -using System.Net.Http; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Input; +using System.Windows.Input; using System.Windows.Media; using System.Windows; using bib_talk.Business; -using bib_talk.Repository; namespace bib_talk { diff --git a/bibtalk/bib-talk/UI/MainWindow.xaml.cs b/bibtalk/bib-talk/UI/MainWindow.xaml.cs index c148a1b..a3778f2 100644 --- a/bibtalk/bib-talk/UI/MainWindow.xaml.cs +++ b/bibtalk/bib-talk/UI/MainWindow.xaml.cs @@ -1,18 +1,7 @@ -using bib_talk.Repository; -using Microsoft.Win32; -using Newtonsoft.Json; +using Microsoft.Win32; using System; -using System.Collections.Generic; -using System.Globalization; -using System.IO; -using System.Net.Http; -using System.Text; -using System.Threading.Tasks; using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; using System.Windows.Input; -using System.Windows.Media; using System.Windows.Threading; using bib_talk.Business; diff --git a/bibtalk/bib-talk/UI/RegisterWindow.xaml.cs b/bibtalk/bib-talk/UI/RegisterWindow.xaml.cs index 8c9a078..2a8a8a3 100644 --- a/bibtalk/bib-talk/UI/RegisterWindow.xaml.cs +++ b/bibtalk/bib-talk/UI/RegisterWindow.xaml.cs @@ -1,22 +1,10 @@ -using bib_talk.Repository; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; +using System; using System.Diagnostics; -using System.Linq; -using System.Net.Http; -using System.Text; using System.Text.RegularExpressions; -using System.Threading.Tasks; using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; -using System.Windows.Media.Imaging; using System.Windows.Navigation; -using System.Windows.Shapes; using bib_talk.Business; namespace bib_talk