Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
-Removed usage of obsolete members in constructor and obsolete using …
Browse files Browse the repository at this point in the history
…statements;
  • Loading branch information
Yomodo committed Jul 27, 2018
1 parent 7c22583 commit 8956d72
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Globalization;

namespace AlphaFS.UnitTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Globalization;

namespace AlphaFS.UnitTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Globalization;

namespace AlphaFS.UnitTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Globalization;

namespace AlphaFS.UnitTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Globalization;

namespace AlphaFS.UnitTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* THE SOFTWARE.
*/

using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AlphaFS.UnitTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Globalization;

namespace AlphaFS.UnitTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using Microsoft.Win32;

namespace AlphaFS.UnitTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
*/

using System;
using System.Security.AccessControl;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.Win32;

namespace AlphaFS.UnitTest
{
Expand All @@ -34,6 +32,8 @@ public partial class MoveTest
[TestMethod]
public void AlphaFS_File_Move_DelayUntilReboot_LocalAndNetwork_Success()
{
UnitTestAssert.IsElevatedProcess();

AlphaFS_File_Move_DelayUntilReboot(false);
AlphaFS_File_Move_DelayUntilReboot(true);
}
Expand Down
1 change: 0 additions & 1 deletion AlphaFS/Filesystem/File Class/File.Open.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* THE SOFTWARE.
*/

using System;
using Microsoft.Win32.SafeHandles;
using System.IO;
using System.Security;
Expand Down
4 changes: 1 addition & 3 deletions AlphaFS/Filesystem/File Class/File.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@
* THE SOFTWARE.
*/

using System.Diagnostics.CodeAnalysis;

namespace Alphaleonis.Win32.Filesystem
{
/// <summary>Provides static methods for the creation, copying, deletion, moving, and opening of a single file, and aids in the creation of FileStream objects.</summary>
public static partial class File
{
// This file only exists for the documentation.
}
}
}
1 change: 0 additions & 1 deletion AlphaFS/Network/NetworkInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Net.NetworkInformation;

namespace Alphaleonis.Win32.Network
{
Expand Down
2 changes: 0 additions & 2 deletions AlphaFS/Network/OpenConnectionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@ public sealed class OpenConnectionInfo
/// <summary>Create an OpenConnectionInfo instance.</summary>
internal OpenConnectionInfo(string hostName, NativeMethods.CONNECTION_INFO_1 connectionInfo)
{
Host = hostName;
HostName = hostName;
Id = connectionInfo.coni1_id;
ShareType = connectionInfo.coni1_type;
TotalOpenFiles = connectionInfo.coni1_num_opens;
TotalUsers = connectionInfo.coni1_num_users;
ConnectedSeconds = connectionInfo.coni1_time;
ConnectedTime = TimeSpan.FromSeconds(connectionInfo.coni1_time);
UserName = connectionInfo.coni1_username;
NetName = connectionInfo.oni1_netname;
Expand Down
1 change: 0 additions & 1 deletion AlphaFS/Network/OpenResourceInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public sealed class OpenResourceInfo
/// <summary>Create an OpenResourceInfo instance.</summary>
internal OpenResourceInfo(string hostName, NativeMethods.FILE_INFO_3 fileInfo)
{
Host = hostName;
HostName = hostName;
Id = fileInfo.fi3_id;
Permissions = fileInfo.fi3_permissions;
Expand Down
1 change: 0 additions & 1 deletion AlphaFS/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Resources;
/* Copyright (C) 2008-2018 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down

0 comments on commit 8956d72

Please sign in to comment.