Kaydet (Commit) 3c4779bd authored tarafından Francois Tigeot's avatar Francois Tigeot

Remove unused function IsLongNameOnFAT()

üst c8a9db7a
...@@ -296,7 +296,6 @@ public: ...@@ -296,7 +296,6 @@ public:
FSysPathStyle eParser = FSYS_STYLE_HOST ); FSysPathStyle eParser = FSYS_STYLE_HOST );
~DirEntry(); ~DirEntry();
sal_Bool IsLongNameOnFAT() const;
sal_Bool IsCaseSensitive (FSysPathStyle eFormatter = FSYS_STYLE_HOST) const; sal_Bool IsCaseSensitive (FSysPathStyle eFormatter = FSYS_STYLE_HOST) const;
sal_uIntPtr GetError() const { return nError; } sal_uIntPtr GetError() const { return nError; }
......
...@@ -2908,46 +2908,6 @@ sal_Bool DirEntry::IsRFSAvailable() ...@@ -2908,46 +2908,6 @@ sal_Bool DirEntry::IsRFSAvailable()
return sal_False; return sal_False;
} }
/*************************************************************************
|*
|* IsLongNameOnFAT()
|*
|* Beschreibung ?berpr?ft , ob das DirEntry einen langen
|* Filenamen auf einer FAT-Partition enth?lt (EAs).
|* (eigentlich nur f?r OS2 interessant)
|*
*************************************************************************/
sal_Bool DirEntry::IsLongNameOnFAT() const
{
// FAT-System?
DirEntry aTempDirEntry(*this);
aTempDirEntry.ToAbs();
if (DirEntry::GetPathStyle(aTempDirEntry.GetDevice().GetName().GetChar(0)) != FSYS_STYLE_FAT)
{
return sal_False; // nein, also false
}
// DirEntry-Kette auf lange Dateinamen pr?fen
for( sal_uInt16 iLevel = this->Level(); iLevel > 0; iLevel-- )
{
const DirEntry& rEntry = (const DirEntry&) (*this)[iLevel-1];
String aBase( rEntry.GetBase() );
String aExtension( rEntry.GetExtension() );
if (aBase.Len()>8) // Name > 8?
{
return sal_True;
}
if (aExtension.Len()>3) // Extension > 3?
{
return sal_True;
}
}
return sal_False;
}
//======================================================================== //========================================================================
#if defined(DBG_UTIL) #if defined(DBG_UTIL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment