Skip to content
Commit f6651e0a authored by Lei Zhang's avatar Lei Zhang Committed by Chromium LUCI CQ
Browse files

Delete unused STL includes from chromecast/ headers.

Headers that do not contain "std::" do not need STL includes.

This CL is first mechanically generated as follows:

INCL="algorithm|array|list|map|memory|queue|set|string|unordered_map|unordered_set|utility|vector"
git ls-files chromecast | grep '\.h$' | xargs grep -L std:: | \
    xargs grep -El "#include <($INCL)>$" > to_process.txt

INCL_ESCAPED="$(echo $INCL|sed 's/|/\\|/g')"
cat to_process.txt | xargs sed -i "/^#include <\($INCL_ESCAPED\)>$/d"
cat to_process.txt | xargs sed -i '/^$/N;/^\n$/D'

Bug: 1200833
Change-Id: Icf4d464427ff60a65a4b4bda1fef429b0dd55c0b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2881257


Reviewed-by: default avatarLuke Halliwell (slow) <halliwell@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#880647}
parent 2feb7b68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment