Skip to content

Commit 1f2e0b9

Browse files
committed
Remove unused function
1 parent 951168c commit 1f2e0b9

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

sal/linux/sal_filesys.c

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#include <string.h>
32
//#include <error.h>
43
#include <sys/stat.h>
@@ -110,57 +109,6 @@ s32 sal_DirectoryRead(struct SAL_DIR *d, struct SAL_DIRECTORY_ENTRY *dir, s8 *ba
110109
}
111110
}
112111

113-
s32 sal_DirectoryGet(const char *path, struct SAL_DIRECTORY_ENTRY *dir,
114-
s32 startIndex, s32 count)
115-
{
116-
s32 fileCount=0;
117-
DIR *d;
118-
struct dirent *de;
119-
uint32_t entriesRead=0;
120-
121-
char fullFilename[256];
122-
s32 endIndex=startIndex+count;
123-
long loc;
124-
125-
d = opendir(path);
126-
127-
if (d)
128-
{
129-
loc=telldir(d);
130-
seekdir(d,loc+startIndex);
131-
while ((de = readdir(d)))
132-
{
133-
if(startIndex >= endIndex)
134-
{
135-
//exit loop
136-
break;
137-
}
138-
139-
//Is entry a file or directory
140-
if (de->d_type == 4) // Directory
141-
{
142-
strcpy(dir[fileCount].filename,de->d_name);
143-
strcpy(dir[fileCount].displayName,de->d_name);
144-
dir[fileCount].type=SAL_FILE_TYPE_DIRECTORY;
145-
}
146-
else
147-
{
148-
//File
149-
strcpy(dir[fileCount].filename,de->d_name);
150-
strcpy(dir[fileCount].displayName,de->d_name);
151-
dir[fileCount].type=SAL_FILE_TYPE_FILE;
152-
}
153-
fileCount++;
154-
startIndex++;
155-
}
156-
closedir(d);
157-
}
158-
return SAL_ERROR;
159-
// return SAL_OK;
160-
}
161-
162-
163-
164112
void sal_DirectoryGetParent(s8 *path)
165113
{
166114
int i;

0 commit comments

Comments
 (0)