Daniele Bartolini 12 anni fa
parent
commit
0331e2ca3a
2 ha cambiato i file con 9 aggiunte e 35 eliminazioni
  1. 0 2
      engine/os/OS.h
  2. 9 33
      engine/os/linux/LinuxOS.cpp

+ 0 - 2
engine/os/OS.h

@@ -89,8 +89,6 @@ const char*		get_cwd();						//! Fills ret with the path of the current working
 const char*		get_home();						//! Fills ret with the path of the user home directory
 const char*		get_env(const char* env);		//! Returns the content of the 'env' environment variable or the empty string
 
-//bool			ls(const char* path, List<Str>& fileList);	//! Returns the list of filenames in a directory.
-
 //-----------------------------------------------------------------------------
 // Render window and input management
 //-----------------------------------------------------------------------------

+ 9 - 33
engine/os/linux/LinuxOS.cpp

@@ -24,22 +24,21 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.
 */
 
-#include "OS.h"
-#include "StringUtils.h"
 #include "Assert.h"
-#include <cstdio>
 #include <cstdarg>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <dirent.h>
+#include <cstdio>
 #include <cstdlib>
-#include <sys/time.h>
-#include <time.h>
-#include <pthread.h>
+#include <dirent.h>
 #include <dlfcn.h>
+#include <sys/stat.h>
+#include <sys/time.h>
+#include <sys/types.h>
 #include <sys/wait.h>
+#include <time.h>
+#include <unistd.h>
 
+#include "OS.h"
+#include "StringUtils.h"
 
 namespace crown
 {
@@ -219,29 +218,6 @@ const char* get_env(const char* env)
 	return envDevel;
 }
 
-////-----------------------------------------------------------------------------
-//bool ls(const char* path, List<Str>& fileList)
-//{
-//	DIR *dir;
-//	struct dirent *ent;
-
-//	dir = opendir(path);
-
-//	if (dir == NULL)
-//	{
-//		return false;
-//	}
-
-//	while ((ent = readdir (dir)) != NULL)
-//	{
-//		fileList.push_back(Str(ent->d_name));
-//	}
-
-//	closedir (dir);
-
-//	return true;
-//}
-
 //-----------------------------------------------------------------------------
 void init_os()
 {