diff options
| author | 2011-07-27 18:38:50 -0700 | |
|---|---|---|
| committer | 2011-07-27 18:38:50 -0700 | |
| commit | 0b45ca8884acfd2e9ccdcb3fbe641a46b116bda0 (patch) | |
| tree | 6ea23c651a81ebec8791b869118a04be3f866815 /tools/aapt/FileFinder.cpp | |
| parent | c682559d3c39aa4503d5c4d60ae046393aa45b79 (diff) | |
| parent | cd01ad7cc7813e3067826945c2a472602f1d3509 (diff) | |
am cd01ad7c: am 20339b24: Merge "Remove Debug Code"
* commit 'cd01ad7cc7813e3067826945c2a472602f1d3509':
  Remove Debug Code
Diffstat (limited to 'tools/aapt/FileFinder.cpp')
| -rw-r--r-- | tools/aapt/FileFinder.cpp | 15 | 
1 files changed, 0 insertions, 15 deletions
diff --git a/tools/aapt/FileFinder.cpp b/tools/aapt/FileFinder.cpp index 580528d29a82..18775c06863f 100644 --- a/tools/aapt/FileFinder.cpp +++ b/tools/aapt/FileFinder.cpp @@ -9,7 +9,6 @@  #include <utils/String8.h>  #include <utils/KeyedVector.h> -#include <iostream>  #include <dirent.h>  #include <sys/stat.h> @@ -19,8 +18,6 @@  //#define DEBUG  using android::String8; -using std::cout; -using std::endl;  // Private function to check whether a file is a directory or not  bool isDirectory(const char* filename) { @@ -50,9 +47,6 @@ bool SystemFileFinder::findFiles(String8 basePath, Vector<String8>& extensions,      if (!dw->openDir(basePath)) {          return false;      } -#ifdef DEBUG -    cout << "FileFinder looking in " << basePath << endl; -#endif // DEBUG      /*       *  Go through all directory entries. Check each file using checkAndAddFile       *  and recurse into sub-directories. @@ -87,9 +81,6 @@ void SystemFileFinder::checkAndAddFile(String8 path, const struct stat* stats,                                         Vector<String8>& extensions,                                         KeyedVector<String8,time_t>& fileStore)  { -#ifdef DEBUG -    cout << "Checking file " << path << "..."; -#endif // DEBUG      // Loop over the extensions, checking for a match      bool done = false;      String8 ext(path.getPathExtension()); @@ -99,15 +90,9 @@ void SystemFileFinder::checkAndAddFile(String8 path, const struct stat* stats,          ext2.toLower();          // Compare the extensions. If a match is found, add to storage.          if (ext == ext2) { -#ifdef DEBUG -            cout << "Match"; -#endif // DEBUG              done = true;              fileStore.add(path,stats->st_mtime);          }      } -#ifdef DEBUG -    cout << endl; -#endif //DEBUG  }  |