Skip to content

Commit 09118b0

Browse files
committed
Code Quality: Removed unused IsDefaultLibrary method
1 parent 3a8c7cf commit 09118b0

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/Files.App/Utils/Library/LibraryManager.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
// Licensed under the MIT License. See the LICENSE.
33

44
using Files.App.Dialogs;
5-
using Files.App.Utils.Shell;
65
using Files.App.ViewModels.Dialogs;
7-
using Files.Shared;
8-
using Files.Shared.Extensions;
96
using Microsoft.Extensions.Logging;
107
using Microsoft.UI.Xaml.Controls;
118
using System.Collections.Specialized;
@@ -65,24 +62,6 @@ private void InitializeWatcher()
6562
librariesWatcher.EnableRaisingEvents = true;
6663
}
6764

68-
public static bool IsDefaultLibrary(string libraryFilePath)
69-
{
70-
// TODO: try to find a better way for this
71-
switch (Path.GetFileNameWithoutExtension(libraryFilePath))
72-
{
73-
case "CameraRoll":
74-
case "Documents":
75-
case "Music":
76-
case "Pictures":
77-
case "SavedPictures":
78-
case "Videos":
79-
return true;
80-
81-
default:
82-
return false;
83-
}
84-
}
85-
8665
/// <summary>
8766
/// Get libraries of the current user with the help of the FullTrust process.
8867
/// </summary>

0 commit comments

Comments
 (0)