| Index: services/device/public/cpp/generic_sensor/sensor_struct_traits.cc
|
| diff --git a/services/device/public/cpp/generic_sensor/sensor_struct_traits.cc b/services/device/public/cpp/generic_sensor/sensor_struct_traits.cc
|
| deleted file mode 100644
|
| index 89c49e95964eadd334b9ef74dd2fd3edfe2df22d..0000000000000000000000000000000000000000
|
| --- a/services/device/public/cpp/generic_sensor/sensor_struct_traits.cc
|
| +++ /dev/null
|
| @@ -1,25 +0,0 @@
|
| -// Copyright 2016 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include "services/device/public/cpp/generic_sensor/sensor_struct_traits.h"
|
| -
|
| -namespace mojo {
|
| -
|
| -// static
|
| -bool StructTraits<device::mojom::SensorConfigurationDataView,
|
| - device::PlatformSensorConfiguration>::
|
| - Read(device::mojom::SensorConfigurationDataView data,
|
| - device::PlatformSensorConfiguration* out) {
|
| - // Maximum allowed frequency is capped to 60Hz.
|
| - if (data.frequency() >
|
| - device::mojom::SensorConfiguration::kMaxAllowedFrequency ||
|
| - data.frequency() <= 0.0) {
|
| - return false;
|
| - }
|
| -
|
| - out->set_frequency(data.frequency());
|
| - return true;
|
| -}
|
| -
|
| -} // namespace mojo
|
|
|