aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-02-17 16:11:13 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-02-17 16:11:13 -0500
commit36f8eb1149e821de46b1ee15dcd1990c6a378ca9 (patch)
treeb461142fb436426bb3b3e4740eb183a8329ef65d /Emby.Server.Implementations/Library/LibraryManager.cs
parentb51f00feb695e50c2f7e1ea3b89715a2469c01ea (diff)
add db startup error handling
Diffstat (limited to 'Emby.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--Emby.Server.Implementations/Library/LibraryManager.cs24
1 files changed, 0 insertions, 24 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs
index 616c6c1a2..879735ccb 100644
--- a/Emby.Server.Implementations/Library/LibraryManager.cs
+++ b/Emby.Server.Implementations/Library/LibraryManager.cs
@@ -818,30 +818,6 @@ namespace Emby.Server.Implementations.Library
return _userRootFolder;
}
- public Guid? FindIdByPath(string path, bool? isFolder)
- {
- // If this returns multiple items it could be tricky figuring out which one is correct.
- // In most cases, the newest one will be and the others obsolete but not yet cleaned up
-
- var query = new InternalItemsQuery
- {
- Path = path,
- IsFolder = isFolder,
- SortBy = new[] { ItemSortBy.DateCreated },
- SortOrder = SortOrder.Descending,
- Limit = 1
- };
-
- var id = GetItemIds(query);
-
- if (id.Count == 0)
- {
- return null;
- }
-
- return id[0];
- }
-
public BaseItem FindByPath(string path, bool? isFolder)
{
// If this returns multiple items it could be tricky figuring out which one is correct.