diff --git a/src/playlist_manager.cpp b/src/playlist_manager.cpp index 9c0f635..91ac74b 100644 --- a/src/playlist_manager.cpp +++ b/src/playlist_manager.cpp @@ -6,21 +6,6 @@ PlaylistManager::PlaylistManager() { SPIMaster::enable_sd(); current_rfid_tag_id = String(""); - /* - File root = SD.open("/"); - while(File entry = root.openNextFile()) { - if (entry.isDirectory()) { - String filename("/"); - filename.concat(entry.name()); - if (!filename.startsWith("/.")) { - Serial.println(filename); - dirs.push_back(filename); - } - } - } - root.close(); - */ - if (!SD.exists("/_mapping.txt")) { Serial.println("WARNING: /_mapping.txt not found!"); } else { @@ -39,19 +24,6 @@ PlaylistManager::PlaylistManager() { String folder = data.substring(eq + 1); Serial.printf(" Adding mapping: %s=>%s\n", rfid_id.c_str(), folder.c_str()); map[rfid_id] = folder; - - /*if (folder.charAt(0)=='/') { - bool found=false; - for (String f: dirs) { - if (f.equals(folder)) { - found = true; - break; - } - } - if (!found) { - Serial.printf("WARNING: Found mapping for RFID id %s which maps to non-existing folder %s!\n", rfid_id.c_str(), folder.c_str()); - } - }*/ } } f.close();