remove interface and impl of nsFileSpec::ResolveAlias() because it is obsolete.

This commit is contained in:
pinkerton%netscape.com 1999-08-03 04:51:45 +00:00
Родитель 31f04581dd
Коммит a595b44378
2 изменённых файлов: 0 добавлений и 22 удалений

Просмотреть файл

@ -355,11 +355,6 @@ class NS_COM nsFileSpec
ConstFSSpecPtr GetFSSpecPtr() const { return &mSpec; }
FSSpecPtr GetFSSpecPtr() { return &mSpec; }
void MakeAliasSafe();
// Called for the spec of an alias. Copies the alias to
// a secret temp directory and modifies the spec to point
// to it. Sets mError.
void ResolveAlias(PRBool& wasAliased);
// ** do not use this function, instead us ResolveSymlink()
void MakeUnique(ConstStr255Param inSuggestedLeafName);
StringPtr GetLeafPName() { return mSpec.name; }
ConstStr255Param GetLeafPName() const { return mSpec.name; }

Просмотреть файл

@ -790,23 +790,6 @@ void nsFileSpec::MakeUnique(ConstStr255Param inSuggestedLeafName)
MakeUnique();
} // nsFileSpec::MakeUnique
//----------------------------------------------------------------------------------------
void nsFileSpec::ResolveAlias(PRBool& wasAliased)
//----------------------------------------------------------------------------------------
{
NS_ASSERTION(0, "Use ResolveSymlink not ResolveAlias!");
Boolean wasAliased2; // Type conversion Boolean <--> PRBool
OSErr err = MacFileHelpers::ResolveAliasFile(mSpec, wasAliased2);
if (wasAliased2)
{
mError = NS_FILE_RESULT(err);
wasAliased = PR_TRUE;
}
else
wasAliased = PR_FALSE;
} // nsFileSpec::ResolveAlias
//----------------------------------------------------------------------------------------
PRBool nsFileSpec::IsFile() const
//----------------------------------------------------------------------------------------