diff options
author | Ungureanu Marius <teromario@yahoo.com> | 2014-04-04 15:42:22 +0400 |
---|---|---|
committer | Ungureanu Marius <teromario@yahoo.com> | 2014-04-04 15:42:22 +0400 |
commit | d77aa0386c06955b68b49470645e0f50699cf3ac (patch) | |
tree | 76020bb377dad1fe21a1bd86ea351d4b34ed7b45 /main/src/core/MonoDevelop.Core | |
parent | d48ca81317d66577b86b45fbe9f0c1887b097a26 (diff) |
[FileService] Remove obsolete EnsureDirectoryExists
Diffstat (limited to 'main/src/core/MonoDevelop.Core')
3 files changed, 2 insertions, 12 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Core/FileService.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Core/FileService.cs index f71406d752..75f7335ea7 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Core/FileService.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Core/FileService.cs @@ -584,16 +584,6 @@ namespace MonoDevelop.Core }
/// <summary>
- /// Creates a directory if it does not already exist.
- /// </summary>
- [Obsolete("Use Directory.CreateDirectory")]
- public static void EnsureDirectoryExists (string directory)
- {
- if (!Directory.Exists (directory))
- Directory.CreateDirectory (directory);
- }
-
- /// <summary>
/// Makes the path separators native.
/// </summary>
public static string MakePathSeparatorsNative (string path)
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Core/PropertyService.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Core/PropertyService.cs index cbbe9ac21a..282b03f585 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Core/PropertyService.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Core/PropertyService.cs @@ -233,7 +233,7 @@ namespace MonoDevelop.Core { Debug.Assert (properties != null); var prefsPath = UserProfile.Current.ConfigDir.Combine (FileName); - FileService.EnsureDirectoryExists (prefsPath.ParentDirectory); + Directory.CreateDirectory (prefsPath.ParentDirectory); properties.Save (prefsPath); } diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Core/UserDataMigrationService.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Core/UserDataMigrationService.cs index aaaedf3a03..89acf31bd7 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Core/UserDataMigrationService.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Core/UserDataMigrationService.cs @@ -146,7 +146,7 @@ namespace MonoDevelop.Core LoggingService.LogInfo ("Migrating '{0}' to '{1}'", source, target); if (!sourceIsDirectory) - FileService.EnsureDirectoryExists (target.ParentDirectory); + Directory.CreateDirectory (target.ParentDirectory); var handler = node.GetHandler (); if (handler != null) { |