remove unused usings

This commit is contained in:
eelke 2025-10-26 14:14:00 +01:00
parent 114542b317
commit 26259543b3
34 changed files with 29 additions and 103 deletions

View file

@ -1,5 +1,4 @@
using System.Data.Common; using System.Data.Common;
using Npgsql;
namespace pgLabII.PgUtils.Tests.ConnectionStrings; namespace pgLabII.PgUtils.Tests.ConnectionStrings;

View file

@ -1,5 +1,4 @@
using System.Collections.Generic; using Npgsql;
using Npgsql;
using pgLabII.PgUtils.ConnectionStrings; using pgLabII.PgUtils.ConnectionStrings;
namespace pgLabII.PgUtils.Tests.ConnectionStrings; namespace pgLabII.PgUtils.Tests.ConnectionStrings;

View file

@ -1,5 +1,4 @@
using System.Collections.Generic; using Npgsql;
using Npgsql;
using pgLabII.PgUtils.ConnectionStrings; using pgLabII.PgUtils.ConnectionStrings;
namespace pgLabII.PgUtils.Tests.ConnectionStrings; namespace pgLabII.PgUtils.Tests.ConnectionStrings;

View file

@ -1,6 +1,4 @@
using FluentResults; namespace pgLabII.PgUtils.Tests.ConnectionStrings.Util;
namespace pgLabII.PgUtils.Tests.ConnectionStrings.Util;
public class UnitTestTokenizerTests public class UnitTestTokenizerTests
{ {

View file

@ -1,8 +1,4 @@
using System; using System.Globalization;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using Npgsql; using Npgsql;
namespace pgLabII.PgUtils.ConnectionStrings; namespace pgLabII.PgUtils.ConnectionStrings;

View file

@ -1,7 +1,4 @@
using System; using FluentResults;
using System.Collections.Generic;
using System.Linq;
using FluentResults;
namespace pgLabII.PgUtils.ConnectionStrings; namespace pgLabII.PgUtils.ConnectionStrings;

View file

@ -1,6 +1,4 @@
using System.Collections.Generic; namespace pgLabII.PgUtils.ConnectionStrings;
namespace pgLabII.PgUtils.ConnectionStrings;
public sealed class HostEndpoint public sealed class HostEndpoint
{ {

View file

@ -1,11 +1,7 @@
using System; using System.Diagnostics.CodeAnalysis;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization; using System.Globalization;
using System.Linq;
using System.Text; using System.Text;
using FluentResults; using FluentResults;
using Npgsql;
namespace pgLabII.PgUtils.ConnectionStrings; namespace pgLabII.PgUtils.ConnectionStrings;

View file

@ -1,7 +1,5 @@
using System.Collections; using System.Data.Common;
using System.Data.Common;
using System.Globalization; using System.Globalization;
using System.Text;
using FluentResults; using FluentResults;
using Npgsql; using Npgsql;

View file

@ -1,5 +1,4 @@
using System.Collections.ObjectModel; using FluentResults;
using FluentResults;
using Npgsql; using Npgsql;
namespace pgLabII.PgUtils.ConnectionStrings; namespace pgLabII.PgUtils.ConnectionStrings;

View file

@ -1,6 +1,5 @@
using System.Text; using System.Text;
using FluentResults; using FluentResults;
using static System.Net.Mime.MediaTypeNames;
namespace pgLabII.PgUtils.ConnectionStrings; namespace pgLabII.PgUtils.ConnectionStrings;

View file

@ -4,7 +4,6 @@ using Avalonia.Markup.Xaml;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using pgLabII.Infra; using pgLabII.Infra;
using pgLabII.ViewModels;
using pgLabII.Views; using pgLabII.Views;
namespace pgLabII; namespace pgLabII;

View file

@ -1,10 +1,4 @@
using System; namespace pgLabII.ConnectionManager;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace pgLabII.ConnectionManager;
internal class ConnectionRepository internal class ConnectionRepository
{ {
} }

View file

@ -1,6 +1,4 @@
using System.Collections.Generic; using pgLabII.Model;
using pgLabII.Model;
using pgLabII.Views.Controls;
namespace pgLabII; namespace pgLabII;

View file

@ -1,5 +1,4 @@
using System; using System.Text;
using System.Text;
namespace pgLabII; namespace pgLabII;

View file

@ -1,6 +1,4 @@
using System; using System.Timers;
using System.Collections.Generic;
using System.Timers;
using pgLabII.Infra; using pgLabII.Infra;
using pgLabII.Model; using pgLabII.Model;
@ -13,7 +11,7 @@ public class EditHistoryManager : IEditHistoryManager
private readonly List<EditHistoryEntry> _pendingEdits = new(); private readonly List<EditHistoryEntry> _pendingEdits = new();
private EditBuffer? _currentBuffer; private EditBuffer? _currentBuffer;
private const int BufferTimeoutMs = 500; private const int BufferTimeoutMs = 500;
private readonly Timer _idleFlushTimer; private readonly System.Timers.Timer _idleFlushTimer;
private readonly object _sync = new object(); private readonly object _sync = new object();
public EditHistoryManager(LocalDb db, Document document) public EditHistoryManager(LocalDb db, Document document)
@ -21,7 +19,7 @@ public class EditHistoryManager : IEditHistoryManager
_db = db; _db = db;
_document = document; _document = document;
_idleFlushTimer = new Timer(BufferTimeoutMs) _idleFlushTimer = new (BufferTimeoutMs)
{ {
AutoReset = false, AutoReset = false,
Enabled = false Enabled = false

View file

@ -1,6 +1,4 @@
using System; namespace pgLabII;
namespace pgLabII;
public class EditOperation public class EditOperation
{ {

View file

@ -1,6 +1,4 @@
using System; using Avalonia.Media;
using Avalonia.Controls.Shapes;
using Avalonia.Media;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders; using Microsoft.EntityFrameworkCore.Metadata.Builders;
using pgLabII.Model; using pgLabII.Model;

View file

@ -1,7 +1,4 @@
using System; namespace pgLabII.Model;
using System.Collections.Generic;
namespace pgLabII.Model;
public class Document public class Document
{ {

View file

@ -1,6 +1,4 @@
using System; namespace pgLabII.Model;
namespace pgLabII.Model;
public class EditHistoryEntry public class EditHistoryEntry
{ {

View file

@ -1,5 +1,4 @@
using System; using Npgsql;
using Npgsql;
namespace pgLabII.Model; namespace pgLabII.Model;

View file

@ -1,5 +1,4 @@
using System; using pgLabII.Infra;
using pgLabII.Infra;
namespace pgLabII.Services; namespace pgLabII.Services;

View file

@ -1,8 +1,4 @@
using System; using pgLabII.Model;
using System.Collections.Generic;
using System.Linq;
using Npgsql;
using pgLabII.Model;
using pgLabII.PgUtils.ConnectionStrings; using pgLabII.PgUtils.ConnectionStrings;
namespace pgLabII.Services; namespace pgLabII.Services;

View file

@ -1,7 +1,5 @@
using System;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Controls.Templates; using Avalonia.Controls.Templates;
using pgLabII.ViewModels;
namespace pgLabII; namespace pgLabII;

View file

@ -1,8 +1,4 @@
 namespace pgLabII.ViewModels;
using System;
using Microsoft.Extensions.DependencyInjection;
namespace pgLabII.ViewModels;
public class MainViewModel : ViewModelBase public class MainViewModel : ViewModelBase
{ {

View file

@ -1,8 +1,5 @@
using System; using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Reactive; using System.Reactive;
using System.Threading.Tasks;
using Npgsql; using Npgsql;
using ReactiveUI; using ReactiveUI;
using ReactiveUI.SourceGenerators; using ReactiveUI.SourceGenerators;

View file

@ -1,5 +1,4 @@
using System; using System.Reactive;
using System.Reactive;
using Avalonia.Media; using Avalonia.Media;
using Npgsql; using Npgsql;
using pgLabII.Model; using pgLabII.Model;

View file

@ -3,7 +3,6 @@ using ReactiveUI;
using System.Reactive; using System.Reactive;
using Avalonia.Media; using Avalonia.Media;
using pgLabII.Views; using pgLabII.Views;
using pgLabII.Model;
namespace pgLabII.ViewModels; namespace pgLabII.ViewModels;

View file

@ -1,12 +1,8 @@
using System.IO; using Avalonia;
using Avalonia;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Data;
using AvaloniaEdit.Document; using AvaloniaEdit.Document;
using AvaloniaEdit.TextMate; using AvaloniaEdit.TextMate;
using TextMateSharp.Grammars; using TextMateSharp.Grammars;
using System;
using System.Reactive.Linq;
namespace pgLabII.Views.Controls; namespace pgLabII.Views.Controls;

View file

@ -1,6 +1,4 @@
using Avalonia; using Avalonia.Controls;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
namespace pgLabII.Views; namespace pgLabII.Views;

View file

@ -1,7 +1,4 @@
using System.Reactive.Disposables; using System.Reactive.Disposables;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using Avalonia.ReactiveUI; using Avalonia.ReactiveUI;
using pgLabII.ViewModels; using pgLabII.ViewModels;
using ReactiveUI; using ReactiveUI;

View file

@ -1,5 +1,4 @@
using Avalonia.Controls; using Avalonia.Controls;
using pgLabII.ViewModels;
namespace pgLabII.Views; namespace pgLabII.Views;

View file

@ -1,6 +1,4 @@
using Avalonia; using Avalonia.Controls;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
namespace pgLabII.Views; namespace pgLabII.Views;

View file

@ -1,6 +1,4 @@
using Avalonia; using Avalonia.Controls;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using pgLabII.Model; using pgLabII.Model;
using pgLabII.ViewModels; using pgLabII.ViewModels;