Remove unused critical section includes.

Bug: webrtc:11567
Change-Id: Ic5e43c51ce06c0619adc265d12ad4bef73a9df76
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/179521
Reviewed-by: Tommi <tommi@webrtc.org>
Commit-Queue: Markus Handell <handellm@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31745}
diff --git a/api/BUILD.gn b/api/BUILD.gn
index 37473ea..0d4ba2c 100644
--- a/api/BUILD.gn
+++ b/api/BUILD.gn
@@ -579,10 +579,7 @@
 rtc_source_set("simulated_network_api") {
   visibility = [ "*" ]
   sources = [ "test/simulated_network.h" ]
-  deps = [
-    "../rtc_base",
-    "../rtc_base:criticalsection",
-  ]
+  deps = [ "../rtc_base" ]
   absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
 }
 
diff --git a/api/DEPS b/api/DEPS
index 995664e..220b30b 100644
--- a/api/DEPS
+++ b/api/DEPS
@@ -258,7 +258,6 @@
   ],
 
   "simulated_network\.h": [
-    "+rtc_base/critical_section.h",
     "+rtc_base/random.h",
     "+rtc_base/thread_annotations.h",
   ],
diff --git a/api/test/DEPS b/api/test/DEPS
index 1a02bf1..4f98596 100644
--- a/api/test/DEPS
+++ b/api/test/DEPS
@@ -13,7 +13,6 @@
   ],
   "loopback_media_transport\.h": [
     "+rtc_base/async_invoker.h",
-    "+rtc_base/critical_section.h",
     "+rtc_base/thread.h",
     "+rtc_base/thread_checker.h",
   ],
diff --git a/api/test/simulated_network.h b/api/test/simulated_network.h
index 0d5c661..3fba61f 100644
--- a/api/test/simulated_network.h
+++ b/api/test/simulated_network.h
@@ -19,7 +19,6 @@
 #include <vector>
 
 #include "absl/types/optional.h"
-#include "rtc_base/critical_section.h"
 #include "rtc_base/random.h"
 #include "rtc_base/thread_annotations.h"