SMB1: Remove unused parameters related to FindInformation

This commit is contained in:
Tal Aloni 2017-09-16 00:46:06 +03:00
parent a94e8449a0
commit cf8857d438
2 changed files with 5 additions and 5 deletions

View file

@ -51,13 +51,13 @@ namespace SMBLibrary.Server.SMB1
} }
/// <exception cref="SMBLibrary.UnsupportedInformationLevelException"></exception> /// <exception cref="SMBLibrary.UnsupportedInformationLevelException"></exception>
public static FindInformationList GetFindInformationList(List<QueryDirectoryFileInformation> entries, FindInformationLevel informationLevel, bool isUnicode, bool returnResumeKeys, int maxLength) public static FindInformationList GetFindInformationList(List<QueryDirectoryFileInformation> entries, FindInformationLevel informationLevel, bool isUnicode, int maxLength)
{ {
FindInformationList result = new FindInformationList(); FindInformationList result = new FindInformationList();
int pageLength = 0; int pageLength = 0;
for (int index = 0; index < entries.Count; index++) for (int index = 0; index < entries.Count; index++)
{ {
FindInformation infoEntry = GetFindInformation(entries[index], informationLevel, isUnicode, returnResumeKeys); FindInformation infoEntry = GetFindInformation(entries[index], informationLevel);
int entryLength = infoEntry.GetLength(isUnicode); int entryLength = infoEntry.GetLength(isUnicode);
if (pageLength + entryLength <= maxLength) if (pageLength + entryLength <= maxLength)
{ {
@ -73,7 +73,7 @@ namespace SMBLibrary.Server.SMB1
} }
/// <exception cref="SMBLibrary.UnsupportedInformationLevelException"></exception> /// <exception cref="SMBLibrary.UnsupportedInformationLevelException"></exception>
public static FindInformation GetFindInformation(QueryDirectoryFileInformation entry, FindInformationLevel informationLevel, bool isUnicode, bool returnResumeKeys) public static FindInformation GetFindInformation(QueryDirectoryFileInformation entry, FindInformationLevel informationLevel)
{ {
switch (informationLevel) switch (informationLevel)
{ {

View file

@ -61,7 +61,7 @@ namespace SMBLibrary.Server.SMB1
FindInformationList findInformationList; FindInformationList findInformationList;
try try
{ {
findInformationList = SMB1FileStoreHelper.GetFindInformationList(segment, subcommand.InformationLevel, header.UnicodeFlag, returnResumeKeys, maxLength); findInformationList = SMB1FileStoreHelper.GetFindInformationList(segment, subcommand.InformationLevel, header.UnicodeFlag, maxLength);
} }
catch (UnsupportedInformationLevelException) catch (UnsupportedInformationLevelException)
{ {
@ -112,7 +112,7 @@ namespace SMBLibrary.Server.SMB1
FindInformationList findInformationList; FindInformationList findInformationList;
try try
{ {
findInformationList = SMB1FileStoreHelper.GetFindInformationList(segment, subcommand.InformationLevel, header.UnicodeFlag, returnResumeKeys, maxLength); findInformationList = SMB1FileStoreHelper.GetFindInformationList(segment, subcommand.InformationLevel, header.UnicodeFlag, maxLength);
} }
catch (UnsupportedInformationLevelException) catch (UnsupportedInformationLevelException)
{ {