Skip to content

Commit

Permalink
facebook-unused-include-check in fbcode/fboss/lib
Browse files Browse the repository at this point in the history
Summary:
Remove headers flagged by facebook-unused-include-check over fbcode.fboss.lib.

+ format and autodeps

This is a codemod. It was automatically generated and will be landed once it is approved and tests are passing in sandcastle.
You have been added as a reviewer by Sentinel or Butterfly.

Autodiff project: uif
Autodiff partition: fbcode.fboss.lib
Autodiff bookmark: ad.uif.fbcode.fboss.lib

Reviewed By: dtolnay

Differential Revision: D65957931

fbshipit-source-id: af31592369989963647751e1f87612c9c9234da5
  • Loading branch information
Gownta authored and facebook-github-bot committed Nov 21, 2024
1 parent 4ec2531 commit e0e643c
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 59 deletions.
2 changes: 0 additions & 2 deletions fboss/lib/AlertLogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*/
#include "fboss/lib/AlertLogger.h"

#include <folly/logging/xlog.h>

namespace facebook::fboss {

// Prefix for fboss alert tag
Expand Down
1 change: 0 additions & 1 deletion fboss/lib/CommonFileUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <exception>
#include <filesystem>
#include <fstream>
#include <sstream>
#include "fboss/agent/SysError.h"

#include <fcntl.h>
Expand Down
2 changes: 0 additions & 2 deletions fboss/lib/bsp/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,10 @@ cpp_library(
"//folly:format",
"//folly:range",
"//folly:singleton",
"//folly/lang:bits",
"//folly/logging:logging",
"//thrift/lib/cpp/util:enum_utils",
],
exported_external_deps = [
"gflags",
("libgpiod", None, "gpiod"),
],
)
1 change: 0 additions & 1 deletion fboss/lib/bsp/BspPhyContainer.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.

#include "fboss/lib/bsp/BspPhyContainer.h"
#include "fboss/lib/bsp/BspPlatformMapping.h"
#include "fboss/lib/bsp/gen-cpp2/bsp_platform_mapping_types.h"

namespace facebook {
Expand Down
6 changes: 0 additions & 6 deletions fboss/lib/bsp/BspPhyIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@

#include "fboss/lib/bsp/BspPhyIO.h"

#include <fcntl.h>
#include <folly/Format.h>
#include <folly/Range.h>
#include <folly/lang/Bits.h>
#include <folly/logging/xlog.h>
#include <gflags/gflags.h>
#include <linux/i2c-dev.h>
#include <linux/i2c.h>
#include <stdint.h>
#include <sys/ioctl.h>
#include "fboss/lib/CommonFileUtils.h"
#include "fboss/lib/bsp/gen-cpp2/bsp_platform_mapping_types.h"
#include "fboss/mdio/BspDeviceMdio.h"
Expand Down
1 change: 0 additions & 1 deletion fboss/lib/bsp/BspTransceiverContainer.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.

#include "fboss/lib/bsp/BspTransceiverContainer.h"
#include "fboss/lib/bsp/BspPlatformMapping.h"
#include "fboss/lib/bsp/gen-cpp2/bsp_platform_mapping_types.h"

namespace facebook {
Expand Down
7 changes: 0 additions & 7 deletions fboss/lib/bsp/BspTransceiverCpldAccess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@

#include "fboss/lib/bsp/BspTransceiverCpldAccess.h"

#include <fcntl.h>
#include <folly/Format.h>
#include <folly/Range.h>
#include <folly/lang/Bits.h>
#include <folly/logging/xlog.h>
#include <gflags/gflags.h>
#include <linux/i2c-dev.h>
#include <linux/i2c.h>
#include <stdint.h>
#include <sys/ioctl.h>
#include "fboss/lib/CommonFileUtils.h"
#include "fboss/lib/bsp/BspTransceiverAccess.h"
#include "fboss/lib/bsp/gen-cpp2/bsp_platform_mapping_types.h"

namespace facebook {
Expand Down
1 change: 0 additions & 1 deletion fboss/lib/bsp/BspTransceiverGpioAccess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include "fboss/lib/bsp/BspTransceiverGpioAccess.h"
#include <folly/Format.h>
#include <gflags/gflags.h>
#include <stdint.h>
#include "fboss/lib/CommonFileUtils.h"
#include "fboss/lib/GpiodLine.h"
Expand Down
6 changes: 0 additions & 6 deletions fboss/lib/bsp/BspTransceiverIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@

#include "fboss/lib/bsp/BspTransceiverIO.h"

#include <fcntl.h>
#include <folly/Format.h>
#include <folly/Range.h>
#include <folly/lang/Bits.h>
#include <folly/logging/xlog.h>
#include <gflags/gflags.h>
#include <linux/i2c-dev.h>
#include <linux/i2c.h>
#include <stdint.h>
#include <sys/ioctl.h>
#include "fboss/lib/CommonFileUtils.h"
#include "fboss/lib/bsp/gen-cpp2/bsp_platform_mapping_types.h"

Expand Down
3 changes: 0 additions & 3 deletions fboss/lib/fpga/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ cpp_library(
"//fboss/agent:utils",
"//fboss/lib/i2c:i2c_ctrl",
"//fboss/lib/usb:i2-api",
"//folly:cpp_attributes",
"//folly:format",
"//folly:range",
"//folly:synchronized",
Expand All @@ -74,7 +73,6 @@ cpp_library(
"//fboss/agent:utils",
"//fboss/lib/i2c:i2c_ctrl",
"//fboss/lib/usb:i2-api",
"//folly:cpp_attributes",
"//folly:format",
"//folly:range",
"//folly:synchronized",
Expand Down Expand Up @@ -161,7 +159,6 @@ cpp_library(
":fb_fpga_i2c",
":wedge400_fpga",
"//fboss/agent:utils",
"//fboss/lib:pci_access",
"//fboss/lib/usb:i2-api",
"//folly:format",
"//folly/logging:logging",
Expand Down
1 change: 0 additions & 1 deletion fboss/lib/fpga/FbFpgaI2c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "fboss/agent/Utils.h"
#include "fboss/lib/fpga/FbFpgaRegisters.h"

#include <folly/CppAttributes.h>
#include <folly/Format.h>
#include <folly/Synchronized.h>
#include <folly/futures/Future.h>
Expand Down
1 change: 0 additions & 1 deletion fboss/lib/fpga/FbFpgaSpi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "fboss/agent/Utils.h"
#include "fboss/lib/fpga/FbFpgaRegisters.h"

#include <folly/CppAttributes.h>
#include <folly/Format.h>
#include <folly/Synchronized.h>
#include <folly/futures/Future.h>
Expand Down
1 change: 0 additions & 1 deletion fboss/lib/fpga/Wedge400I2CBus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "fboss/lib/fpga/Wedge400I2CBus.h"

#include "fboss/agent/Utils.h"
#include "fboss/lib/PciAccess.h"
#include "fboss/lib/fpga/Wedge400Fpga.h"
#include "fboss/lib/usb/TransceiverI2CApi.h"

Expand Down
5 changes: 0 additions & 5 deletions fboss/lib/i2c/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,8 @@ cpp_library(
":i2c_controller_stats-cpp2-types",
"//fboss/agent:utils",
"//folly:format",
"//folly:range",
"//folly:synchronized",
"//folly/io/async:async_base",
"//folly/lang:bits",
"//folly/logging:logging",
],
exported_external_deps = [
"gflags",
],
)
5 changes: 0 additions & 5 deletions fboss/lib/i2c/I2cRdWrIo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@

#include "fboss/lib/i2c/I2cRdWrIo.h"
#include <errno.h>
#include <fcntl.h>
#include <folly/Format.h>
#include <folly/Range.h>
#include <folly/lang/Bits.h>
#include <folly/logging/xlog.h>
#include <gflags/gflags.h>
#include <linux/i2c-dev.h>
#include <linux/i2c.h>
#include <stdint.h>
Expand Down
5 changes: 0 additions & 5 deletions fboss/lib/i2c/I2cSmbusIo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@

#include "fboss/lib/i2c/I2cSmbusIo.h"
#include <errno.h>
#include <fcntl.h>
#include <folly/Format.h>
#include <folly/Range.h>
#include <folly/lang/Bits.h>
#include <folly/logging/xlog.h>
#include <gflags/gflags.h>
#include <linux/i2c-dev.h>
#include <linux/i2c.h>
#include <stdint.h>
Expand Down
2 changes: 0 additions & 2 deletions fboss/lib/phy/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ cpp_library(
"//fboss/mka_service/if:mka_structs-cpp2-types",
"//folly:synchronized",
"//folly/futures:core",
"//folly/json:dynamic",
"//folly/logging:logging",
"//thrift/lib/cpp/util:enum_utils",
],
Expand Down Expand Up @@ -177,7 +176,6 @@ cpp_library(
"//fboss/lib/phy/facebook/credo:credo",
"//fboss/mdio:facebook_fpga_mdio",
"//folly:conv",
"//folly:random",
"//folly/logging:logging",
],
)
Expand Down
1 change: 0 additions & 1 deletion fboss/lib/phy/PhyManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "fboss/lib/phy/gen-cpp2/phy_types.h"

#include <fb303/ThreadCachedServiceData.h>
#include <folly/json/json.h>
#include <folly/logging/xlog.h>
#include <thrift/lib/cpp/util/EnumUtils.h>
#include <chrono>
Expand Down
2 changes: 0 additions & 2 deletions fboss/lib/test/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ cpp_unittest(
"CommonPortUtilsTest.cpp",
],
deps = [
"//fboss/agent:fboss-error",
"//fboss/lib:common_file_utils",
"//fboss/lib:common_port_utils",
"//folly:format",
Expand All @@ -179,6 +178,5 @@ cpp_unittest(
],
external_deps = [
"glog",
("boost", None, "boost_filesystem"),
],
)
4 changes: 0 additions & 4 deletions fboss/lib/test/CommonFileUtilsTest.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
// (c) Facebook, Inc. and its affiliates. Confidential and proprietary.

#include "fboss/lib/CommonFileUtils.h"
#include <boost/filesystem/operations.hpp>
#include <folly/logging/xlog.h>
#include <folly/testing/TestUtil.h>
#include <gtest/gtest.h>
#include "fboss/agent/SysError.h"

#include <fcntl.h>

namespace facebook::fboss {

Expand Down
1 change: 0 additions & 1 deletion fboss/lib/test/PciDeviceTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <folly/Singleton.h>
#include <glog/logging.h>
#include <gtest/gtest.h>
#include <stdexcept>

extern "C" {
#include <pciaccess.h>
Expand Down
1 change: 0 additions & 1 deletion fboss/lib/usb/Minipack16QI2CBus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "fboss/lib/fpga/MinipackSystemContainer.h"

#include <folly/container/Enumerate.h>
#include <folly/logging/xlog.h>

namespace facebook::fboss {
Minipack16QI2CBus::Minipack16QI2CBus() {
Expand Down

0 comments on commit e0e643c

Please sign in to comment.