Remove unnecessary return statements

A new check in clang-tidy-18 catches this. I built it from source
and ran it locally to find this.
This commit is contained in:
Chris Thrasher 2024-01-14 13:07:53 -07:00
parent 9cd703aa10
commit c919ad533d
5 changed files with 5 additions and 5 deletions

View File

@ -43,7 +43,7 @@ String Clipboard::getString()
////////////////////////////////////////////////////////////
void Clipboard::setString(const String& text)
{
return priv::ClipboardImpl::setString(text);
priv::ClipboardImpl::setString(text);
}
} // namespace sf

View File

@ -79,7 +79,7 @@ Joystick::Identification Joystick::getIdentification(unsigned int joystick)
////////////////////////////////////////////////////////////
void Joystick::update()
{
return priv::JoystickManager::getInstance().update();
priv::JoystickManager::getInstance().update();
}
} // namespace sf

View File

@ -41,7 +41,7 @@ bool Sensor::isAvailable(Type sensor)
////////////////////////////////////////////////////////////
void Sensor::setEnabled(Type sensor, bool enabled)
{
return priv::SensorManager::getInstance().setEnabled(sensor, enabled);
priv::SensorManager::getInstance().setEnabled(sensor, enabled);
}
////////////////////////////////////////////////////////////

View File

@ -134,7 +134,7 @@
////////////////////////////////////////////////////////
- (void)setCursor:(NSCursor*)cursor
{
return [m_oglView setCursor:cursor];
[m_oglView setCursor:cursor];
}

View File

@ -375,7 +375,7 @@
////////////////////////////////////////////////////////
- (void)setCursor:(NSCursor*)cursor
{
return [m_oglView setCursor:cursor];
[m_oglView setCursor:cursor];
}