Index: Source/modules/screen_orientation/ScreenOrientation.cpp |
diff --git a/Source/modules/screen_orientation/ScreenOrientation.cpp b/Source/modules/screen_orientation/ScreenOrientation.cpp |
index 1894c1651cfe53cc61abc7b787132715fa9b22ad..c3599c158db9445aea71d29f3973b8deb0c35ca1 100644 |
--- a/Source/modules/screen_orientation/ScreenOrientation.cpp |
+++ b/Source/modules/screen_orientation/ScreenOrientation.cpp |
@@ -130,21 +130,6 @@ const AtomicString& ScreenOrientation::orientation(Screen& screen) |
return orientationToString(controller.orientation()); |
} |
-bool ScreenOrientation::lockOrientation(Screen& screen, const Vector<String>& orientationsVector) |
-{ |
- blink::WebScreenOrientations orientations = 0; |
- for (size_t i = 0; i < orientationsVector.size(); ++i) { |
- blink::WebScreenOrientations currentOrientation = stringToOrientations(AtomicString(orientationsVector[i])); |
- if (!currentOrientation) |
- return false; |
- orientations |= currentOrientation; |
- } |
- if (!orientations) |
- return false; |
- ScreenOrientation::from(screen).lockOrientationAsync(orientations); |
- return true; |
-} |
- |
bool ScreenOrientation::lockOrientation(Screen& screen, const AtomicString& orientationString) |
{ |
blink::WebScreenOrientations orientations = stringToOrientations(orientationString); |