Bläddra i källkod

Unused code

Source commit: 2024c33937940502419a138f23b93cfa064e66f1
Martin Prikryl 3 år sedan
förälder
incheckning
c6600db4f1
2 ändrade filer med 3 tillägg och 9 borttagningar
  1. 2 8
      source/filezilla/FtpListResult.cpp
  2. 1 1
      source/filezilla/FtpListResult.h

+ 2 - 8
source/filezilla/FtpListResult.cpp

@@ -255,11 +255,10 @@ t_directory::t_direntry * CFtpListResult::getList(int & Num)
   return Result;
 }
 
-BOOL CFtpListResult::parseLine(const char *lineToParse, const int linelen, t_directory::t_direntry &direntry, int &nFTPServerType)
+BOOL CFtpListResult::parseLine(const char *lineToParse, const int linelen, t_directory::t_direntry &direntry)
 {
   USES_CONVERSION;
 
-  nFTPServerType = 0;
   direntry.ownergroup = L"";
   direntry.owner = L"";
   direntry.group = L"";
@@ -364,7 +363,6 @@ void CFtpListResult::AddData(const char * Data, int Size)
         FirstLineEnd = Pos;
       }
       t_directory::t_direntry DirEntry;
-      int ServerType;
       RawByteString Line = Record;
       for (int Index = 1; Index <= Line.Length(); Index++)
       {
@@ -373,12 +371,8 @@ void CFtpListResult::AddData(const char * Data, int Size)
           Line[Index] = ' ';
         }
       }
-      if (parseLine(Line.c_str(), Line.Length(), DirEntry, ServerType))
+      if (parseLine(Line.c_str(), Line.Length(), DirEntry))
       {
-        if (ServerType != 0)
-        {
-          m_server.nServerType |= ServerType;
-        }
         if ((DirEntry.name != L".") && (DirEntry.name != L".."))
         {
           AddLine(DirEntry);

+ 1 - 1
source/filezilla/FtpListResult.h

@@ -39,7 +39,7 @@ private:
   typedef std::list<t_directory::t_direntry> tEntryList;
   tEntryList m_EntryList;
 
-  BOOL parseLine(const char * lineToParse, const int linelen, t_directory::t_direntry & direntry, int & nFTPServerType);
+  BOOL parseLine(const char * lineToParse, const int linelen, t_directory::t_direntry & direntry);
 
   BOOL parseAsVMS(const char * line, const int linelen, t_directory::t_direntry & direntry);
   BOOL parseAsEPLF(const char * line, const int linelen, t_directory::t_direntry & direntry);