Skip to content

Commit 89443ba

Browse files
committed
fix formatting
1 parent e2e3f4a commit 89443ba

File tree

4 files changed

+0
-21
lines changed

4 files changed

+0
-21
lines changed

Flow.Launcher.Infrastructure/Image/ImageLoader.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public static void Initialize()
3939

4040
var usage = LoadStorageToConcurrentDictionary();
4141

42-
4342
foreach (var icon in new[] { Constant.DefaultIcon, Constant.MissingImgIcon })
4443
{
4544
ImageSource img = new BitmapImage(new Uri(icon));

Flow.Launcher/ViewModel/ResultViewModel.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
using System;
2-
using System.Threading;
32
using System.Threading.Tasks;
43
using System.Windows;
54
using System.Windows.Media;
6-
using Flow.Launcher.Infrastructure;
75
using Flow.Launcher.Infrastructure.Image;
86
using Flow.Launcher.Infrastructure.Logger;
97
using Flow.Launcher.Infrastructure.UserSettings;
108
using Flow.Launcher.Plugin;
11-
using Microsoft.FSharp.Core;
129

1310
namespace Flow.Launcher.ViewModel
1411
{
@@ -128,7 +125,6 @@ public override bool Equals(object obj)
128125
}
129126
}
130127

131-
132128
public override int GetHashCode()
133129
{
134130
return Result.GetHashCode();

Flow.Launcher/ViewModel/ResultsForUpdate.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public ResultsForUpdate(List<Result> results, string resultID, CancellationToken
2323
Token = token;
2424
}
2525

26-
2726
public ResultsForUpdate(List<Result> results, PluginMetadata metadata, Query query, CancellationToken token)
2827
{
2928
Results = results;

Flow.Launcher/ViewModel/ResultsViewModel.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@
22
using System.Collections.Generic;
33
using System.Collections.ObjectModel;
44
using System.Collections.Specialized;
5-
using System.ComponentModel;
6-
using System.Configuration;
75
using System.Linq;
86
using System.Threading;
97
using System.Threading.Tasks;
108
using System.Windows;
119
using System.Windows.Controls;
1210
using System.Windows.Data;
1311
using System.Windows.Documents;
14-
using System.Windows.Forms;
1512
using Flow.Launcher.Infrastructure.UserSettings;
1613
using Flow.Launcher.Plugin;
1714

@@ -137,13 +134,11 @@ public void KeepResultsExcept(PluginMetadata metadata)
137134
Results.Update(Results.Where(r => r.Result.PluginID != metadata.ID).ToList());
138135
}
139136

140-
141137
/// <summary>
142138
/// To avoid deadlock, this method should not called from main thread
143139
/// </summary>
144140
public void AddResults(List<Result> newRawResults, string resultId)
145141
{
146-
147142
lock (_collectionLock)
148143
{
149144
var newResults = NewResults(newRawResults, resultId);
@@ -193,8 +188,6 @@ public void AddResults(IEnumerable<ResultsForUpdate> resultsForUpdates, Cancella
193188
Results.Update(newResults, token);
194189
if (Results.Any())
195190
SelectedItem = Results[0];
196-
197-
198191
}
199192

200193
switch (Visbility)
@@ -212,7 +205,6 @@ public void AddResults(IEnumerable<ResultsForUpdate> resultsForUpdates, Cancella
212205

213206
}
214207

215-
216208
private List<ResultViewModel> NewResults(List<Result> newRawResults, string resultId)
217209
{
218210
if (newRawResults.Count == 0)
@@ -222,8 +214,6 @@ private List<ResultViewModel> NewResults(List<Result> newRawResults, string resu
222214

223215
var newResults = newRawResults.Select(r => new ResultViewModel(r, _settings)).ToList();
224216

225-
226-
227217
return results.Where(r => r.Result.PluginID != resultId)
228218
.Concat(results.Intersect(newResults).Union(newResults))
229219
.OrderByDescending(r => r.Result.Score)
@@ -245,7 +235,6 @@ private List<ResultViewModel> NewResults(IEnumerable<ResultsForUpdate> resultsFo
245235
}
246236
#endregion
247237

248-
249238
#region FormattedText Dependency Property
250239
public static readonly DependencyProperty FormattedTextProperty = DependencyProperty.RegisterAttached(
251240
"FormattedText",
@@ -279,7 +268,6 @@ private static void FormattedTextPropertyChanged(DependencyObject d, DependencyP
279268

280269
public class ResultCollection : ObservableCollection<ResultViewModel>
281270
{
282-
283271
private long editTime = 0;
284272

285273
private bool _suppressNotifying = false;
@@ -323,9 +311,6 @@ public void RemoveAll()
323311
ClearItems();
324312
}
325313

326-
327-
328-
329314
/// <summary>
330315
/// Update the results collection with new results, try to keep identical results
331316
/// </summary>

0 commit comments

Comments
 (0)