mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 19:13:38 +02:00
remove command options methods from SharedUtil that crash Jenkins
This commit is contained in:
parent
9eac649268
commit
eb185f2ce8
2 changed files with 0 additions and 33 deletions
|
@ -79,36 +79,6 @@ void switchToResourcesIfRequired() {
|
|||
#endif
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Function: getCmdOption()
|
||||
// Description: Handy little function to tell you if a command line flag and option was
|
||||
// included while launching the application, and to get the option value
|
||||
// immediately following the flag. For example if you ran:
|
||||
// ./app -i filename.txt
|
||||
// then you're using the "-i" flag to set the input file name.
|
||||
// Usage: char * inputFilename = getCmdOption(argv, argv + argc, "-i");
|
||||
// Complaints: Brad :)
|
||||
char* getCmdOption(char ** begin, char ** end, const std::string & option)
|
||||
{
|
||||
char ** itr = std::find(begin, end, option);
|
||||
if (itr != end && ++itr != end)
|
||||
{
|
||||
return *itr;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Function: getCmdOption()
|
||||
// Description: Handy little function to tell you if a command line option flag was
|
||||
// included while launching the application. Returns bool true/false
|
||||
// Usage: bool wantDump = cmdOptionExists(argv, argv+argc, "-d");
|
||||
// Complaints: Brad :)
|
||||
bool cmdOptionExists(char** begin, char** end, const std::string& option)
|
||||
{
|
||||
return std::find(begin, end, option) != end;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Function: pointToVoxel()
|
||||
// Description: Given a universal point with location x,y,z this will return the voxel
|
||||
|
|
|
@ -33,9 +33,6 @@ bool oneAtBit(unsigned char byte, int bitIndex);
|
|||
|
||||
void switchToResourcesIfRequired();
|
||||
|
||||
char* getCmdOption(char ** begin, char ** end, const std::string& option);
|
||||
bool cmdOptionExists(char** begin, char** end, const std::string& option);
|
||||
|
||||
unsigned char* pointToVoxel(float x, float y, float z, float s, unsigned char r, unsigned char g, unsigned char b );
|
||||
|
||||
#endif /* defined(__hifi__SharedUtil__) */
|
||||
|
|
Loading…
Reference in a new issue