From ca5f22459eb524ba9b5390966cb73b683d310f11 Mon Sep 17 00:00:00 2001 From: Francesco Bertolaccini Date: Wed, 12 Apr 2017 22:50:09 +0200 Subject: [PATCH] Updated visibility level for internal use classes --- SharpPhysFS/PhysFS.LowLevel.cs | 2 +- SharpPhysFS/PhysFS.cs | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/SharpPhysFS/PhysFS.LowLevel.cs b/SharpPhysFS/PhysFS.LowLevel.cs index 2c847db..dbf199f 100644 --- a/SharpPhysFS/PhysFS.LowLevel.cs +++ b/SharpPhysFS/PhysFS.LowLevel.cs @@ -4,7 +4,7 @@ namespace SharpPhysFS { public partial class PhysFS { - public static class LowLevel + internal static class LowLevel { public static IntPtr OpenWrite(string filename, PhysFS physFS) { diff --git a/SharpPhysFS/PhysFS.cs b/SharpPhysFS/PhysFS.cs index a9c5e72..5ce21cd 100644 --- a/SharpPhysFS/PhysFS.cs +++ b/SharpPhysFS/PhysFS.cs @@ -604,9 +604,8 @@ namespace SharpPhysFS c(obj, s); }; } - - [Obsolete("The non-generic variant of GetCdRomDirsCallback is meant for internal use only. Consider using one of the generic alternatives.")] - public void GetCdRomDirsCallback(StringCallback c, object data) + + void GetCdRomDirsCallback(StringCallback c, object data) { GCHandle objHandle = GCHandle.Alloc(data); interop.PHYSFS_getCdRomDirsCallback(c, GCHandle.ToIntPtr(objHandle)); @@ -636,9 +635,8 @@ namespace SharpPhysFS { interop.PHYSFS_getCdRomDirsCallback((p, s) => c(s), IntPtr.Zero); } - - [Obsolete("The non-generic variant of GetSearchPathCallback is meant for internal use only. Consider using one of the generic alternatives.")] - public void GetSearchPathCallback(StringCallback c, object data) + + void GetSearchPathCallback(StringCallback c, object data) { GCHandle objHandle = GCHandle.Alloc(data); interop.PHYSFS_getSearchPathCallback(c, GCHandle.ToIntPtr(objHandle)); @@ -669,8 +667,7 @@ namespace SharpPhysFS interop.PHYSFS_getSearchPathCallback((p, s) => c(s), IntPtr.Zero); } - [Obsolete("The non-generic variant of EnumerateFilesCallback is meant for internal use only. Consider using one of the generic alternatives.")] - public void EnumerateFilesCallback(string dir, EnumFilesCallback c, object data) + void EnumerateFilesCallback(string dir, EnumFilesCallback c, object data) { GCHandle objHandle = GCHandle.Alloc(data); interop.PHYSFS_enumerateFilesCallback(dir, c, GCHandle.ToIntPtr(objHandle));