mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 05:12:49 +02:00
Removed redundant exists check from Menu::openPackagesFromDir
This commit is contained in:
parent
98f15d7419
commit
23205dc7e6
@ -643,9 +643,6 @@ void Menu::setLinkIndex(int i) {
|
|||||||
#ifdef HAVE_LIBOPK
|
#ifdef HAVE_LIBOPK
|
||||||
void Menu::openPackagesFromDir(std::string path)
|
void Menu::openPackagesFromDir(std::string path)
|
||||||
{
|
{
|
||||||
if (access(path.c_str(), F_OK))
|
|
||||||
return;
|
|
||||||
|
|
||||||
DEBUG("Opening packages from directory: %s\n", path.c_str());
|
DEBUG("Opening packages from directory: %s\n", path.c_str());
|
||||||
readPackages(path);
|
readPackages(path);
|
||||||
#ifdef ENABLE_INOTIFY
|
#ifdef ENABLE_INOTIFY
|
||||||
|
Loading…
Reference in New Issue
Block a user