mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-13 17:44:48 +00:00
Remove UNUSED
The `UNUSED` macro is used to mark a variable as unused but with a name. Those usages are replaced with comments so that `UNUSED` can be removed. https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rf-unused
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2021 Wildfire Games.
|
||||
/* Copyright (C) 2025 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -118,19 +118,19 @@ namespace JSI_Sound
|
||||
#else
|
||||
|
||||
bool MusicPlaying( ){ return false; }
|
||||
void PlayAmbientSound(const std::wstring& UNUSED(filename), bool UNUSED(looping) ){}
|
||||
void PlayUISound(const std::wstring& UNUSED(filename), bool UNUSED(looping) ) {}
|
||||
void PlayMusic(const std::wstring& UNUSED(filename), bool UNUSED(looping) ) {}
|
||||
void StartPlaylist(bool UNUSED(looping) ){}
|
||||
void AddPlaylistItem(const std::wstring& UNUSED(filename) ){}
|
||||
void PlayAmbientSound(const std::wstring& /*filename*/, bool /*looping*/ ){}
|
||||
void PlayUISound(const std::wstring& /*filename*/, bool /*looping*/ ) {}
|
||||
void PlayMusic(const std::wstring& /*filename*/, bool /*looping*/ ) {}
|
||||
void StartPlaylist(bool /*looping*/ ){}
|
||||
void AddPlaylistItem(const std::wstring& /*filename*/ ){}
|
||||
void ClearPlaylist( ){}
|
||||
void StopMusic( ){}
|
||||
void StartMusic( ){}
|
||||
void SetMasterGain(float UNUSED(gain)){}
|
||||
void SetMusicGain(float UNUSED(gain)){}
|
||||
void SetAmbientGain(float UNUSED(gain)){}
|
||||
void SetActionGain(float UNUSED(gain)){}
|
||||
void SetUIGain(float UNUSED(gain)){}
|
||||
void SetMasterGain(float /*gain*/){}
|
||||
void SetMusicGain(float /*gain*/){}
|
||||
void SetAmbientGain(float /*gain*/){}
|
||||
void SetActionGain(float /*gain*/){}
|
||||
void SetUIGain(float /*gain*/){}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user