From 3b5f222d98fedb82b2a4537dd1577fc85c7caf8c Mon Sep 17 00:00:00 2001 From: elasota Date: Tue, 3 Nov 2020 18:53:30 -0500 Subject: [PATCH] Remove unused function --- GpApp/HouseIO.cpp | 72 ----------------------------------------------- 1 file changed, 72 deletions(-) diff --git a/GpApp/HouseIO.cpp b/GpApp/HouseIO.cpp index 44e3cd3..d9900be 100644 --- a/GpApp/HouseIO.cpp +++ b/GpApp/HouseIO.cpp @@ -185,78 +185,6 @@ Boolean OpenSpecificHouse (const VFileSpec &specs) } #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 // With a house open, this function reads in the actual bits of dataÉ