summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/filesel.cpp
diff options
context:
space:
mode:
author mahlemiut <bsr@xnet.co.nz>2016-12-19 23:14:50 +1300
committer mahlemiut <bsr@xnet.co.nz>2016-12-19 23:16:02 +1300
commitabd7e4234a57da2588c779889cccd185f6c84ff1 (patch)
treecae7a3501506957742e8c38d739aadd715453651 /src/frontend/mame/ui/filesel.cpp
parentd3a3bc1fc62ba97cad8005c24c2bb1300e62c8f4 (diff)
Revert "ui: sort File Manager menu items (nw)"
This reverts commit 952175132566d6b64f842735541100db4bdb9e97.
Diffstat (limited to 'src/frontend/mame/ui/filesel.cpp')
-rw-r--r--src/frontend/mame/ui/filesel.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/frontend/mame/ui/filesel.cpp b/src/frontend/mame/ui/filesel.cpp
index db9dea84387..114fa317c74 100644
--- a/src/frontend/mame/ui/filesel.cpp
+++ b/src/frontend/mame/ui/filesel.cpp
@@ -297,7 +297,6 @@ void menu_file_selector::populate(float &customtop, float &custombottom)
const file_selector_entry *selected_entry = nullptr;
int i;
const char *volume_name;
- uint8_t first = 0;
// open the directory
err = util::zippath_opendir(m_current_directory, &directory);
@@ -333,9 +332,6 @@ void menu_file_selector::populate(float &customtop, float &custombottom)
i++;
}
- // store where the file list starts
- first = m_entrylist.size();
-
// build the menu for each item
if (err == osd_file::error::NONE)
{
@@ -357,9 +353,6 @@ void menu_file_selector::populate(float &customtop, float &custombottom)
}
}
- // sort the menu entries
- std::sort(m_entrylist.begin()+first, m_entrylist.end(), [](file_selector_entry x, file_selector_entry y) { return x.basename < y.basename; } );
-
// append all of the menu entries
for (auto &entry : m_entrylist)
append_entry_menu_item(&entry);