diff options
author | Filippos Karapetis | 2014-12-03 01:43:51 +0200 |
---|---|---|
committer | Filippos Karapetis | 2014-12-03 01:43:51 +0200 |
commit | bb31c435bf6502f4e1f94b3de9f046c054031a98 (patch) | |
tree | 5efd773292431e2bbf134d90e63d5771424dbdeb /engines/zvision/utility/utility.h | |
parent | 10444ef5683f420f08cfc276349a5771dd0d04e5 (diff) | |
download | scummvm-rg350-bb31c435bf6502f4e1f94b3de9f046c054031a98.tar.gz scummvm-rg350-bb31c435bf6502f4e1f94b3de9f046c054031a98.tar.bz2 scummvm-rg350-bb31c435bf6502f4e1f94b3de9f046c054031a98.zip |
ZVISION: Remove more dead code, and move some debugger functions
Diffstat (limited to 'engines/zvision/utility/utility.h')
-rw-r--r-- | engines/zvision/utility/utility.h | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/engines/zvision/utility/utility.h b/engines/zvision/utility/utility.h index 0741cc044c..0ca26b968d 100644 --- a/engines/zvision/utility/utility.h +++ b/engines/zvision/utility/utility.h @@ -34,15 +34,6 @@ namespace ZVision { class ZVision; /** - * Opens the sourceFile utilizing Common::File (aka SearchMan) and writes the - * contents to destFile. destFile is created in the working directory - * - * @param sourceFile The 'file' you want the contents of - * @param destFile The name of the file where the content will be written to - */ -void writeFileContentsToFile(const Common::String &sourceFile, const Common::String &destFile); - -/** * Removes any line comments using '#' as a sequence start. * Then removes any trailing and leading 'whitespace' using String::trim() * Note: String::trim uses isspace() to determine what is whitespace and what is not. @@ -51,63 +42,6 @@ void writeFileContentsToFile(const Common::String &sourceFile, const Common::Str */ void trimCommentsAndWhiteSpace(Common::String *string); -/** - * Searches through all the .scr files and dumps 'numberOfExamplesPerType' examples of each type of ResultAction - * ZVision::initialize() must have been called before this function can be used. - * - * @param destFile Where to write the examples - */ -void dumpEveryResultAction(const Common::String &destFile); - -/** - * Removes all duplicate entries from container. Relative order will be preserved. - * - * @param container The Array to remove duplicate entries from - */ -template<class T> -void removeDuplicateEntries(Common::Array<T> &container) { - // Length of modified array - uint newLength = 1; - uint j; - - for (uint i = 1; i < container.size(); i++) { - for (j = 0; j < newLength; j++) { - if (container[i] == container[j]) { - break; - } - } - - // If none of the values in index[0..j] of container are the same as array[i], - // then copy the current value to corresponding new position in array - if (j == newLength) { - container[newLength++] = container[i]; - } - } - - // Actually remove the unneeded space - while (container.size() < newLength) { - container.pop_back(); - } -} - -/** - * Gets the name of the file (including extension). Forward or back slashes - * are interpreted as directory changes - * - * @param fullPath A full or partial path to the file. Ex: folderOne/folderTwo/file.txt - * @return The name of the file without any preceding directories. Ex: file.txt - */ -Common::String getFileName(const Common::String &fullPath); - -/** - * Converts a ZVision .RAW file to a .WAV - * The .WAV will be created in the working directory and will overwrite any existing file - * - * @param inputFile The path to the input .RAW file - * @param outputFile The name of the output .WAV file - */ -void convertRawToWav(const Common::String &inputFile, ZVision *engine, const Common::String &outputFile); - } // End of namespace ZVision #endif |