From 1b16662f176ca8a8dc8f0f94a0e2ddb3f51d3eff Mon Sep 17 00:00:00 2001
From: Connor McLaughlin <stenzek@gmail.com>
Date: Fri, 16 Apr 2021 14:13:57 +1000
Subject: [PATCH] System: Remove unused ParseM3UFile function

---
 src/core/system.cpp | 46 ---------------------------------------------
 1 file changed, 46 deletions(-)

diff --git a/src/core/system.cpp b/src/core/system.cpp
index 5b61521a2..41686c529 100644
--- a/src/core/system.cpp
+++ b/src/core/system.cpp
@@ -305,52 +305,6 @@ bool IsLoadableFilename(const char* path)
   return false;
 }
 
-std::vector<std::string> ParseM3UFile(const char* path)
-{
-  std::ifstream ifs(path);
-  if (!ifs.is_open())
-  {
-    Log_ErrorPrintf("Failed to open %s", path);
-    return {};
-  }
-
-  std::vector<std::string> entries;
-  std::string line;
-  while (std::getline(ifs, line))
-  {
-    u32 start_offset = 0;
-    while (start_offset < line.size() && std::isspace(line[start_offset]))
-      start_offset++;
-
-    // skip comments
-    if (start_offset == line.size() || line[start_offset] == '#')
-      continue;
-
-    // strip ending whitespace
-    u32 end_offset = static_cast<u32>(line.size()) - 1;
-    while (std::isspace(line[end_offset]) && end_offset > start_offset)
-      end_offset--;
-
-    // anything?
-    if (start_offset == end_offset)
-      continue;
-
-    std::string entry_path(line.begin() + start_offset, line.begin() + end_offset + 1);
-    if (!FileSystem::IsAbsolutePath(entry_path))
-    {
-      SmallString absolute_path;
-      FileSystem::BuildPathRelativeToFile(absolute_path, path, entry_path.c_str());
-      entry_path = absolute_path;
-    }
-
-    Log_DevPrintf("Read path from m3u: '%s'", entry_path.c_str());
-    entries.push_back(std::move(entry_path));
-  }
-
-  Log_InfoPrintf("Loaded %zu paths from m3u '%s'", entries.size(), path);
-  return entries;
-}
-
 ConsoleRegion GetConsoleRegionForDiscRegion(DiscRegion region)
 {
   switch (region)