remove unused usings
This commit is contained in:
parent
114542b317
commit
26259543b3
34 changed files with 29 additions and 103 deletions
|
|
@ -1,5 +1,4 @@
|
|||
using System.Data.Common;
|
||||
using Npgsql;
|
||||
|
||||
namespace pgLabII.PgUtils.Tests.ConnectionStrings;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using System.Collections.Generic;
|
||||
using Npgsql;
|
||||
using Npgsql;
|
||||
using pgLabII.PgUtils.ConnectionStrings;
|
||||
|
||||
namespace pgLabII.PgUtils.Tests.ConnectionStrings;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using System.Collections.Generic;
|
||||
using Npgsql;
|
||||
using Npgsql;
|
||||
using pgLabII.PgUtils.ConnectionStrings;
|
||||
|
||||
namespace pgLabII.PgUtils.Tests.ConnectionStrings;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
using FluentResults;
|
||||
|
||||
namespace pgLabII.PgUtils.Tests.ConnectionStrings.Util;
|
||||
namespace pgLabII.PgUtils.Tests.ConnectionStrings.Util;
|
||||
|
||||
public class UnitTestTokenizerTests
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Globalization;
|
||||
using Npgsql;
|
||||
|
||||
namespace pgLabII.PgUtils.ConnectionStrings;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using FluentResults;
|
||||
using FluentResults;
|
||||
|
||||
namespace pgLabII.PgUtils.ConnectionStrings;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace pgLabII.PgUtils.ConnectionStrings;
|
||||
namespace pgLabII.PgUtils.ConnectionStrings;
|
||||
|
||||
public sealed class HostEndpoint
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using FluentResults;
|
||||
using Npgsql;
|
||||
|
||||
namespace pgLabII.PgUtils.ConnectionStrings;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
using System.Collections;
|
||||
using System.Data.Common;
|
||||
using System.Data.Common;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
using FluentResults;
|
||||
using Npgsql;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using System.Collections.ObjectModel;
|
||||
using FluentResults;
|
||||
using FluentResults;
|
||||
using Npgsql;
|
||||
|
||||
namespace pgLabII.PgUtils.ConnectionStrings;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using System.Text;
|
||||
using FluentResults;
|
||||
using static System.Net.Mime.MediaTypeNames;
|
||||
|
||||
namespace pgLabII.PgUtils.ConnectionStrings;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ using Avalonia.Markup.Xaml;
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using pgLabII.Infra;
|
||||
using pgLabII.ViewModels;
|
||||
using pgLabII.Views;
|
||||
|
||||
namespace pgLabII;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace pgLabII.ConnectionManager;
|
||||
namespace pgLabII.ConnectionManager;
|
||||
internal class ConnectionRepository
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
using System.Collections.Generic;
|
||||
using pgLabII.Model;
|
||||
using pgLabII.Views.Controls;
|
||||
using pgLabII.Model;
|
||||
|
||||
namespace pgLabII;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Text;
|
||||
using System.Text;
|
||||
|
||||
namespace pgLabII;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Timers;
|
||||
using System.Timers;
|
||||
using pgLabII.Infra;
|
||||
using pgLabII.Model;
|
||||
|
||||
|
|
@ -13,7 +11,7 @@ public class EditHistoryManager : IEditHistoryManager
|
|||
private readonly List<EditHistoryEntry> _pendingEdits = new();
|
||||
private EditBuffer? _currentBuffer;
|
||||
private const int BufferTimeoutMs = 500;
|
||||
private readonly Timer _idleFlushTimer;
|
||||
private readonly System.Timers.Timer _idleFlushTimer;
|
||||
private readonly object _sync = new object();
|
||||
|
||||
public EditHistoryManager(LocalDb db, Document document)
|
||||
|
|
@ -21,7 +19,7 @@ public class EditHistoryManager : IEditHistoryManager
|
|||
_db = db;
|
||||
_document = document;
|
||||
|
||||
_idleFlushTimer = new Timer(BufferTimeoutMs)
|
||||
_idleFlushTimer = new (BufferTimeoutMs)
|
||||
{
|
||||
AutoReset = false,
|
||||
Enabled = false
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
using System;
|
||||
|
||||
namespace pgLabII;
|
||||
namespace pgLabII;
|
||||
|
||||
public class EditOperation
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
using System;
|
||||
using Avalonia.Controls.Shapes;
|
||||
using Avalonia.Media;
|
||||
using Avalonia.Media;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using pgLabII.Model;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace pgLabII.Model;
|
||||
namespace pgLabII.Model;
|
||||
|
||||
public class Document
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
using System;
|
||||
|
||||
namespace pgLabII.Model;
|
||||
namespace pgLabII.Model;
|
||||
|
||||
public class EditHistoryEntry
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using Npgsql;
|
||||
using Npgsql;
|
||||
|
||||
namespace pgLabII.Model;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using pgLabII.Infra;
|
||||
using pgLabII.Infra;
|
||||
|
||||
namespace pgLabII.Services;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Npgsql;
|
||||
using pgLabII.Model;
|
||||
using pgLabII.Model;
|
||||
using pgLabII.PgUtils.ConnectionStrings;
|
||||
|
||||
namespace pgLabII.Services;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
using System;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Controls.Templates;
|
||||
using pgLabII.ViewModels;
|
||||
|
||||
namespace pgLabII;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
|
||||
using System;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace pgLabII.ViewModels;
|
||||
namespace pgLabII.ViewModels;
|
||||
|
||||
public class MainViewModel : ViewModelBase
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Reactive;
|
||||
using System.Threading.Tasks;
|
||||
using Npgsql;
|
||||
using ReactiveUI;
|
||||
using ReactiveUI.SourceGenerators;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Reactive;
|
||||
using System.Reactive;
|
||||
using Avalonia.Media;
|
||||
using Npgsql;
|
||||
using pgLabII.Model;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ using ReactiveUI;
|
|||
using System.Reactive;
|
||||
using Avalonia.Media;
|
||||
using pgLabII.Views;
|
||||
using pgLabII.Model;
|
||||
|
||||
namespace pgLabII.ViewModels;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,8 @@
|
|||
using System.IO;
|
||||
using Avalonia;
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Data;
|
||||
using AvaloniaEdit.Document;
|
||||
using AvaloniaEdit.TextMate;
|
||||
using TextMateSharp.Grammars;
|
||||
using System;
|
||||
using System.Reactive.Linq;
|
||||
|
||||
namespace pgLabII.Views.Controls;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using Avalonia.Controls;
|
||||
|
||||
namespace pgLabII.Views;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
using System.Reactive.Disposables;
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using Avalonia.ReactiveUI;
|
||||
using pgLabII.ViewModels;
|
||||
using ReactiveUI;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using Avalonia.Controls;
|
||||
using pgLabII.ViewModels;
|
||||
|
||||
namespace pgLabII.Views;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using Avalonia.Controls;
|
||||
|
||||
namespace pgLabII.Views;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using Avalonia.Controls;
|
||||
using pgLabII.Model;
|
||||
using pgLabII.ViewModels;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue