mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Removed unused method
This commit is contained in:
parent
8b94ddbd1a
commit
b699edcd1c
1 changed files with 0 additions and 13 deletions
|
@ -38,8 +38,6 @@ You should have received a copy of the GNU General Public License
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Resources;
|
using System.Resources;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Runtime.Serialization;
|
|
||||||
using System.Runtime.Serialization.Formatters.Binary;
|
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
using System.Security.Permissions;
|
using System.Security.Permissions;
|
||||||
using System.Security.Principal;
|
using System.Security.Principal;
|
||||||
|
@ -397,17 +395,6 @@ public static string ProperTimeSpan(TimeSpan ts)
|
||||||
return time;
|
return time;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static object Clone(object obj)
|
|
||||||
{
|
|
||||||
using (MemoryStream ms = new MemoryStream())
|
|
||||||
{
|
|
||||||
BinaryFormatter binaryFormatter = new BinaryFormatter(null, new StreamingContext(StreamingContextStates.Clone));
|
|
||||||
binaryFormatter.Serialize(ms, obj);
|
|
||||||
ms.Seek(0, SeekOrigin.Begin);
|
|
||||||
return binaryFormatter.Deserialize(ms);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void PlaySoundAsync(Stream stream)
|
public static void PlaySoundAsync(Stream stream)
|
||||||
{
|
{
|
||||||
if (stream != null)
|
if (stream != null)
|
||||||
|
|
Loading…
Reference in a new issue