Delete transitional includes from common_types.h

Also drop unneeded dependencies and a #pragma.

Bug: webrtc:5876, webrtc:7660
Change-Id: I3a46eaf60591b00e43c0647a6eb758e5443de466
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/128773
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27311}
This commit is contained in:
Niels Möller
2019-03-22 14:25:57 +01:00
committed by Commit Bot
parent 53dd1f3c1a
commit 0cc2fe5e78
4 changed files with 1 additions and 28 deletions

View File

@ -447,14 +447,6 @@ rtc_source_set("webrtc_common") {
sources = [
"common_types.h",
]
deps = [
"api:array_view",
"api/video:video_frame",
"modules/audio_coding:audio_coding_module_typedefs",
"rtc_base:checks",
"rtc_base:deprecation",
"//third_party/abseil-cpp/absl/strings",
]
}
if (use_libfuzzer || use_afl) {

8
DEPS
View File

@ -1632,11 +1632,3 @@ include_rules = [
"+absl/types/optional.h",
"+absl/types/variant.h",
]
specific_include_rules = {
"common_types\.h" : [
# TODO(bugs.webrtc.org/5876). For migration of AudioFrameType.
# Delete when downstream code is updated.
"+modules/audio_coding/include/audio_coding_module_typedefs.h"
],
}

View File

@ -14,18 +14,6 @@
#include <stddef.h> // For size_t
#include <cstdint>
// TODO(bugs.webrtc.org/7660): Delete include once downstream code is updated.
#include "api/video/video_codec_type.h"
// TODO(bugs.webrtc.org/5876): For AudioFrameType. Delete when downstream code
// is updated.
#include "modules/audio_coding/include/audio_coding_module_typedefs.h"
#if defined(_MSC_VER)
// Disable "new behavior: elements of array will be default initialized"
// warning. Affects OverUseDetectorOptions.
#pragma warning(disable : 4351)
#endif
namespace webrtc {
// Statistics for RTCP packet types.

View File

@ -19,6 +19,7 @@
#include "api/units/data_rate.h"
#include "api/units/data_size.h"
#include "api/units/time_delta.h"
#include "api/video/video_codec_type.h"
#include "common_types.h" // NOLINT(build/include)
#include "test/frame_generator.h"
#include "test/scenario/quality_info.h"