Skip to content

Commit

Permalink
Remove unused accessibility from platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidokert committed Jun 19, 2024
1 parent 6788e53 commit 1e1acbd
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
4 changes: 4 additions & 0 deletions starboard/shared/stub/accessibility_get_caption_settings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#if SB_API_VERSION < 16

#include "starboard/accessibility.h"
#include "starboard/common/memory.h"

Expand All @@ -27,3 +29,5 @@ bool SbAccessibilityGetCaptionSettings(
// explicitly set states to kSbAccessibilityCaptionStateUnsupported.
return true;
}

#endif // SB_API_VERSION < 16
4 changes: 4 additions & 0 deletions starboard/shared/stub/accessibility_get_display_settings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#if SB_API_VERSION < 16

#include "starboard/accessibility.h"

#include "starboard/common/memory.h"
Expand All @@ -26,3 +28,5 @@ bool SbAccessibilityGetDisplaySettings(
out_setting->has_high_contrast_text_setting = false;
return true;
}

#endif // SB_API_VERSION < 16
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#if SB_API_VERSION < 16

#include "starboard/accessibility.h"

#include "starboard/common/memory.h"
Expand All @@ -26,3 +28,5 @@ bool SbAccessibilityGetTextToSpeechSettings(
out_setting->has_text_to_speech_setting = false;
return true;
}

#endif
4 changes: 4 additions & 0 deletions starboard/shared/stub/accessibility_set_captions_enabled.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#if SB_API_VERSION < 16

#include "starboard/accessibility.h"
#include "starboard/configuration.h"

bool SbAccessibilitySetCaptionsEnabled(bool enabled) {
return false;
}

#endif
4 changes: 0 additions & 4 deletions starboard/stub/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ static_library("stub_sources") {
"//starboard/shared/starboard/file_mode_string_to_flags.cc",
"//starboard/shared/starboard/memory.cc",
"//starboard/shared/starboard/queue_application.cc",
"//starboard/shared/stub/accessibility_get_caption_settings.cc",
"//starboard/shared/stub/accessibility_get_display_settings.cc",
"//starboard/shared/stub/accessibility_get_text_to_speech_settings.cc",
"//starboard/shared/stub/accessibility_set_captions_enabled.cc",
"//starboard/shared/stub/atomic_public.h",
"//starboard/shared/stub/audio_sink_create.cc",
"//starboard/shared/stub/audio_sink_destroy.cc",
Expand Down
4 changes: 0 additions & 4 deletions starboard/win/shared/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ static_library("starboard_platform") {
"//starboard/shared/starboard/net_log.cc",
"//starboard/shared/starboard/net_log.h",
"//starboard/shared/starboard/string_duplicate.cc",
"//starboard/shared/stub/accessibility_get_caption_settings.cc",
"//starboard/shared/stub/accessibility_get_display_settings.cc",
"//starboard/shared/stub/accessibility_get_text_to_speech_settings.cc",
"//starboard/shared/stub/accessibility_set_captions_enabled.cc",
"//starboard/shared/stub/cpu_features_get.cc",
"//starboard/shared/stub/image_decode.cc",
"//starboard/shared/stub/image_is_decode_supported.cc",
Expand Down

0 comments on commit 1e1acbd

Please sign in to comment.