mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 23:00:42 +00:00
Remove unused function
This commit is contained in:
@@ -185,78 +185,6 @@ Boolean OpenSpecificHouse (const VFileSpec &specs)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//-------------------------------------------------------------- SaveHouseAs
|
|
||||||
|
|
||||||
#ifndef COMPILEDEMO
|
|
||||||
Boolean SaveHouseAs (void)
|
|
||||||
{
|
|
||||||
// TEMP - fix this later -- use NavServices (see House.c)
|
|
||||||
/*
|
|
||||||
StandardFileReply theReply;
|
|
||||||
FSSpec oldHouse;
|
|
||||||
PLError_t theErr;
|
|
||||||
Boolean noProblems;
|
|
||||||
Str255 tempStr;
|
|
||||||
|
|
||||||
noProblems = true;
|
|
||||||
|
|
||||||
GetLocalizedString(15, tempStr);
|
|
||||||
StandardPutFile(tempStr, thisHouseName, &theReply);
|
|
||||||
if (theReply.sfGood)
|
|
||||||
{
|
|
||||||
oldHouse = theHousesSpecs[thisHouseIndex];
|
|
||||||
|
|
||||||
CloseHouseResFork(); // close this house file
|
|
||||||
theErr = FSClose(houseRefNum);
|
|
||||||
if (theErr != PLErrors::kNone)
|
|
||||||
{
|
|
||||||
CheckFileError(theErr, "\pPreferences");
|
|
||||||
return(false);
|
|
||||||
}
|
|
||||||
// create new house file
|
|
||||||
theErr = FSpCreate(&theReply.sfFile, 'ozm5', 'gliH', theReply.sfScript);
|
|
||||||
if (!CheckFileError(theErr, theReply.sfFile.name))
|
|
||||||
return (false);
|
|
||||||
HCreateResFile(theReply.sfFile.vRefNum, theReply.sfFile.parID,
|
|
||||||
theReply.sfFile.name);
|
|
||||||
if (ResError() != PLErrors::kNone)
|
|
||||||
YellowAlert(kYellowFailedResCreate, ResError());
|
|
||||||
PasStringCopy(theReply.sfFile.name, thisHouseName);
|
|
||||||
// open new house data fork
|
|
||||||
theErr = FSpOpenDF(&theReply.sfFile, fsRdWrPerm, &houseRefNum);
|
|
||||||
if (!CheckFileError(theErr, thisHouseName))
|
|
||||||
return (false);
|
|
||||||
|
|
||||||
houseOpen = true;
|
|
||||||
|
|
||||||
noProblems = WriteHouse(false); // write out house data
|
|
||||||
if (!noProblems)
|
|
||||||
return(false);
|
|
||||||
|
|
||||||
BuildHouseList();
|
|
||||||
if (OpenSpecificHouse(&theReply.sfFile)) // open new house again
|
|
||||||
{
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (OpenSpecificHouse(&oldHouse))
|
|
||||||
{
|
|
||||||
YellowAlert(kYellowOpenedOldHouse, 0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
YellowAlert(kYellowLostAllHouses, 0);
|
|
||||||
noProblems = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
return (noProblems);
|
|
||||||
*/
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//-------------------------------------------------------------- ReadHouse
|
//-------------------------------------------------------------- ReadHouse
|
||||||
// With a house open, this function reads in the actual bits of data<74>
|
// With a house open, this function reads in the actual bits of data<74>
|
||||||
|
Reference in New Issue
Block a user