]> git.tdb.fi Git - libs/gui.git/commitdiff
Remove an unused function
authorMikko Rasa <tdb@tdb.fi>
Sun, 27 Nov 2022 14:28:18 +0000 (16:28 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 27 Nov 2022 14:28:18 +0000 (16:28 +0200)
source/graphics/x11/display.cpp

index 482e1c34383a073dc9571a5eb957a6c0a93a582d..b5888c6459620bca2fc118d923e8b98e10d609ea 100644 (file)
@@ -63,14 +63,6 @@ inline Rotation rotation_to_sys(Msp::Graphics::VideoRotation r)
 }
 #endif
 
-inline unsigned mode_width(const Msp::Graphics::VideoMode &m, Msp::Graphics::VideoRotation r)
-{
-       if(r==Msp::Graphics::ROTATE_RIGHT || r==Msp::Graphics::ROTATE_LEFT)
-               return m.height;
-       else
-               return m.width;
-}
-
 }