From fbbb50496ab42e297c1862cbe6395a47582eab97 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 24 May 2017 15:53:58 -0400 Subject: removed dead files --- src/Emby.Server/ApplicationPathHelper.cs | 40 -------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 src/Emby.Server/ApplicationPathHelper.cs (limited to 'src/Emby.Server/ApplicationPathHelper.cs') diff --git a/src/Emby.Server/ApplicationPathHelper.cs b/src/Emby.Server/ApplicationPathHelper.cs deleted file mode 100644 index c611ff372..000000000 --- a/src/Emby.Server/ApplicationPathHelper.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; - -namespace Emby.Server -{ - public class ApplicationPathHelper - { - public static string GetProgramDataPath(string appDirectory) - { - var useDebugPath = false; - -#if DEBUG - useDebugPath = true; -#endif - - var programDataPath = useDebugPath ? - "programdata" : - "programdata"; - - programDataPath = programDataPath - .Replace('/', Path.DirectorySeparatorChar) - .Replace('\\', Path.DirectorySeparatorChar); - - // If it's a relative path, e.g. "..\" - if (!Path.IsPathRooted(programDataPath)) - { - programDataPath = Path.Combine(appDirectory, programDataPath); - - programDataPath = Path.GetFullPath(programDataPath); - } - - Directory.CreateDirectory(programDataPath); - - return programDataPath; - } - } -} -- cgit v1.2.3