mirror of
https://github.com/pret/pokeemerald.git
synced 2026-03-21 17:54:57 -05:00
Merge pull request #2171 from ShinyDragonHunter/unused_funcs
Label unused functions in siirtc.c, m4a.c & rtc.c with the "UNUSED" attribute
This commit is contained in:
commit
f0e351b33d
|
|
@ -33,11 +33,6 @@ void RtcGetStatus(struct SiiRtcInfo *rtc);
|
|||
void RtcGetRawInfo(struct SiiRtcInfo *rtc);
|
||||
u16 RtcCheckInfo(struct SiiRtcInfo *rtc);
|
||||
void RtcReset(void);
|
||||
void FormatDecimalTime(u8 *dest, s32 hour, s32 minute, s32 second);
|
||||
void FormatHexTime(u8 *dest, s32 hour, s32 minute, s32 second);
|
||||
void FormatHexRtcTime(u8 *dest);
|
||||
void FormatDecimalDate(u8 *dest, s32 year, s32 month, s32 day);
|
||||
void FormatHexDate(u8 *dest, s32 year, s32 month, s32 day);
|
||||
void RtcCalcTimeDifference(struct SiiRtcInfo *rtc, struct Time *result, struct Time *t);
|
||||
void RtcCalcLocalTime(void);
|
||||
void RtcInitLocalTimeOffset(s32 hour, s32 minute);
|
||||
|
|
|
|||
|
|
@ -54,6 +54,5 @@ bool8 SiiRtcGetDateTime(struct SiiRtcInfo *rtc);
|
|||
bool8 SiiRtcSetDateTime(struct SiiRtcInfo *rtc);
|
||||
bool8 SiiRtcGetTime(struct SiiRtcInfo *rtc);
|
||||
bool8 SiiRtcSetTime(struct SiiRtcInfo *rtc);
|
||||
bool8 SiiRtcSetAlarm(struct SiiRtcInfo *rtc);
|
||||
|
||||
#endif // GUARD_RTC_H
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ u32 MidiKeyToFreq(struct WaveData *wav, u8 key, u8 fineAdjust)
|
|||
return umul3232H32(wav->freq, val1 + umul3232H32(val2 - val1, fineAdjustShifted));
|
||||
}
|
||||
|
||||
void UnusedDummyFunc(void)
|
||||
static void UNUSED UnusedDummyFunc(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -135,7 +135,7 @@ void m4aSongNumStartOrChange(u16 n)
|
|||
}
|
||||
}
|
||||
|
||||
void m4aSongNumStartOrContinue(u16 n)
|
||||
static void UNUSED m4aSongNumStartOrContinue(u16 n)
|
||||
{
|
||||
const struct MusicPlayer *mplayTable = gMPlayTable;
|
||||
const struct Song *songTable = gSongTable;
|
||||
|
|
@ -161,7 +161,7 @@ void m4aSongNumStop(u16 n)
|
|||
m4aMPlayStop(mplay->info);
|
||||
}
|
||||
|
||||
void m4aSongNumContinue(u16 n)
|
||||
static void UNUSED m4aSongNumContinue(u16 n)
|
||||
{
|
||||
const struct MusicPlayer *mplayTable = gMPlayTable;
|
||||
const struct Song *songTable = gSongTable;
|
||||
|
|
@ -325,7 +325,7 @@ void MPlayExtender(struct CgbChannel *cgbChans)
|
|||
soundInfo->ident = ident;
|
||||
}
|
||||
|
||||
void MusicPlayerJumpTableCopy(void)
|
||||
static void UNUSED MusicPlayerJumpTableCopy(void)
|
||||
{
|
||||
asm("swi 0x2A");
|
||||
}
|
||||
|
|
|
|||
10
src/rtc.c
10
src/rtc.c
|
|
@ -215,7 +215,7 @@ void RtcReset(void)
|
|||
RtcRestoreInterrupts();
|
||||
}
|
||||
|
||||
void FormatDecimalTime(u8 *dest, s32 hour, s32 minute, s32 second)
|
||||
static void UNUSED FormatDecimalTime(u8 *dest, s32 hour, s32 minute, s32 second)
|
||||
{
|
||||
dest = ConvertIntToDecimalStringN(dest, hour, STR_CONV_MODE_LEADING_ZEROS, 2);
|
||||
*dest++ = CHAR_COLON;
|
||||
|
|
@ -225,7 +225,7 @@ void FormatDecimalTime(u8 *dest, s32 hour, s32 minute, s32 second)
|
|||
*dest = EOS;
|
||||
}
|
||||
|
||||
void FormatHexTime(u8 *dest, s32 hour, s32 minute, s32 second)
|
||||
static void UNUSED FormatHexTime(u8 *dest, s32 hour, s32 minute, s32 second)
|
||||
{
|
||||
dest = ConvertIntToHexStringN(dest, hour, STR_CONV_MODE_LEADING_ZEROS, 2);
|
||||
*dest++ = CHAR_COLON;
|
||||
|
|
@ -235,12 +235,12 @@ void FormatHexTime(u8 *dest, s32 hour, s32 minute, s32 second)
|
|||
*dest = EOS;
|
||||
}
|
||||
|
||||
void FormatHexRtcTime(u8 *dest)
|
||||
static void UNUSED FormatHexRtcTime(u8 *dest)
|
||||
{
|
||||
FormatHexTime(dest, sRtc.hour, sRtc.minute, sRtc.second);
|
||||
}
|
||||
|
||||
void FormatDecimalDate(u8 *dest, s32 year, s32 month, s32 day)
|
||||
static void UNUSED FormatDecimalDate(u8 *dest, s32 year, s32 month, s32 day)
|
||||
{
|
||||
dest = ConvertIntToDecimalStringN(dest, year, STR_CONV_MODE_LEADING_ZEROS, 4);
|
||||
*dest++ = CHAR_HYPHEN;
|
||||
|
|
@ -250,7 +250,7 @@ void FormatDecimalDate(u8 *dest, s32 year, s32 month, s32 day)
|
|||
*dest = EOS;
|
||||
}
|
||||
|
||||
void FormatHexDate(u8 *dest, s32 year, s32 month, s32 day)
|
||||
static void UNUSED FormatHexDate(u8 *dest, s32 year, s32 month, s32 day)
|
||||
{
|
||||
dest = ConvertIntToHexStringN(dest, year, STR_CONV_MODE_LEADING_ZEROS, 4);
|
||||
*dest++ = CHAR_HYPHEN;
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@ bool8 SiiRtcSetTime(struct SiiRtcInfo *rtc)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
bool8 SiiRtcSetAlarm(struct SiiRtcInfo *rtc)
|
||||
static bool8 UNUSED SiiRtcSetAlarm(struct SiiRtcInfo *rtc)
|
||||
{
|
||||
u8 i;
|
||||
u8 alarmData[2];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user