Remove unused C4SDefinitions::AssertModules

Günther Brammer 2011-05-15 14:10:22 +02:00
parent 0f1c572c56
commit 06cfc6e4fc
2 changed files with 3 additions and 32 deletions

View File

@ -469,35 +469,6 @@ void C4SDefinitions::SetModules(const char *szList, const char *szRelativeToPath
}
bool C4SDefinitions::AssertModules(const char *szPath, char *sMissing)
{
// Local only
if (LocalOnly) return true;
// Check all listed modules for availability
bool fAllAvailable=true;
char szModule[_MAX_PATH+1];
if (sMissing) sMissing[0]=0;
// Check all definition files
for (int32_t cnt=0; cnt<C4S_MaxDefinitions; cnt++)
if (Definition[cnt][0])
{
// Compose filename using path specified by caller
szModule[0]=0;
if (szPath) SCopy(szPath,szModule); if (szModule[0]) AppendBackslash(szModule);
SAppend(Definition[cnt],szModule);
// Missing
if (!C4Group_IsGroup(szModule))
{
// Add to list
if (sMissing) { SNewSegment(sMissing,", "); SAppend(Definition[cnt],sMissing); }
fAllAvailable=false;
}
}
return fAllAvailable;
}
void C4SDefinitions::CompileFunc(StdCompiler *pComp)
{
pComp->Value(mkNamingAdapt(LocalOnly, "LocalOnly", false));

View File

@ -99,14 +99,14 @@ class C4SDefinitions
public:
bool LocalOnly;
bool AllowUserChange;
char Definition[C4S_MaxDefinitions][_MAX_PATH+1];
C4IDList SkipDefs;
public:
void SetModules(const char *szList, const char *szRelativeToPath=NULL, const char *szRelativeToPath2=NULL);
bool GetModules(StdStrBuf *psOutModules) const;
bool AssertModules(const char *szPath=NULL, char *sMissing=NULL);
void Default();
void CompileFunc(StdCompiler *pComp);
private:
char Definition[C4S_MaxDefinitions][_MAX_PATH+1];
};