зеркало из https://github.com/mozilla/pjs.git
remove interface and impl of nsFileSpec::ResolveAlias() because it is obsolete.
This commit is contained in:
Родитель
31f04581dd
Коммит
a595b44378
|
@ -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
|
||||
//----------------------------------------------------------------------------------------
|
||||
|
|
Загрузка…
Ссылка в новой задаче