Skip to content

Commit 28783c6

Browse files
committed
Remove if 0
1 parent b5e767a commit 28783c6

50 files changed

Lines changed: 20 additions & 5933 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

deps/libfat/common.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@
6565
#if defined (__wiiu__)
6666
#define DEFAULT_CACHE_PAGES 512
6767
#define DEFAULT_SECTORS_PAGE 128
68-
#if 0
69-
#define USE_LWP_LOCK
70-
#define USE_RTC_TIME
71-
#endif
7268
#elif defined (__wii__)
7369
#define DEFAULT_CACHE_PAGES 4
7470
#define DEFAULT_SECTORS_PAGE 64

deps/libfat/directory.c

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ bool _FAT_directory_getVolumeLabel (PARTITION* partition, char *label)
465465
label[11]='\0';
466466
end = false;
467467

468-
/* this entry should be among the first 3 entries in the root directory table,
468+
/* this entry should be among the first 3 entries in the root directory table,
469469
* if not, then system can have trouble displaying the right volume label */
470470

471471
while(!end)
@@ -517,7 +517,7 @@ bool _FAT_directory_entryFromPosition (PARTITION* partition, DIR_ENTRY* entry)
517517
&& (entryStart.sector == entryEnd.sector)
518518
&& (entryStart.offset == entryEnd.offset))
519519
{
520-
/* Copy the entry data and stop, since this is the
520+
/* Copy the entry data and stop, since this is the
521521
* last section of the directory entry */
522522
memcpy (entry->entryData, entryData, DIR_ENTRY_DATA_SIZE);
523523
finished = true;
@@ -660,7 +660,7 @@ bool _FAT_directory_entryFromPath (PARTITION* partition, DIR_ENTRY* entry, const
660660
while (pathPosition[0] == DIR_SEPARATOR)
661661
pathPosition++;
662662
/* The requested directory was found */
663-
if (pathPosition >= pathEnd)
663+
if (pathPosition >= pathEnd)
664664
found = true;
665665
else
666666
found = false;
@@ -953,13 +953,6 @@ bool _FAT_directory_addEntry (PARTITION* partition, DIR_ENTRY* entry, uint32_t d
953953
for (i = strlen (entry->filename) - 1; (i >= 0) && (entry->filename[i] == ' '); --i)
954954
entry->filename[i] = '\0';
955955

956-
#if 0
957-
/* Remove leading spaces */
958-
for (i = 0; entry->filename[i] == ' '; ++i) ;
959-
if (i > 0)
960-
memmove (entry->filename, entry->filename + i, strlen (entry->filename + i));
961-
#endif
962-
963956
/* Make sure the filename is not 0 length */
964957
if (strnlen (entry->filename, NAME_MAX) < 1)
965958
return false;
@@ -1007,9 +1000,9 @@ bool _FAT_directory_addEntry (PARTITION* partition, DIR_ENTRY* entry, uint32_t d
10071000
/* It's a long filename with an alias */
10081001
entrySize = ((lfnLen + LFN_ENTRY_LENGTH - 1) / LFN_ENTRY_LENGTH) + 1;
10091002

1010-
/* Generate full alias for all cases except when
1003+
/* Generate full alias for all cases except when
10111004
* the alias is simply an upper case version of the LFN
1012-
* and there isn't already a file with that name
1005+
* and there isn't already a file with that name
10131006
*/
10141007
if (strncasecmp (alias, entry->filename, MAX_ALIAS_LENGTH) != 0 ||
10151008
_FAT_directory_entryExists (partition, alias, dirCluster))

0 commit comments

Comments
 (0)