Skip to content

Commit

Permalink
clean unused code: piece.cc/h (PaddlePaddle#47103)
Browse files Browse the repository at this point in the history
* clean unused code: piece.cc/h

* clean usage
  • Loading branch information
zhiqiu authored Oct 19, 2022
1 parent d53bd8c commit e435d69
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 585 deletions.
2 changes: 1 addition & 1 deletion paddle/fluid/inference/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ endif()
get_property(fluid_modules GLOBAL PROPERTY FLUID_MODULES)
get_property(phi_modules GLOBAL PROPERTY PHI_MODULES)
get_property(phi_kernels GLOBAL PROPERTY PHI_KERNELS)
set(utils_modules stringpiece pretty_log string_helper benchmark)
set(utils_modules pretty_log string_helper benchmark)

if(WITH_CUSTOM_DEVICE)
set(fluid_modules ${fluid_modules} phi_capi)
Expand Down
3 changes: 1 addition & 2 deletions paddle/fluid/platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ cc_library(monitor SRCS monitor.cc)
cc_test(
enforce_test
SRCS enforce_test.cc
DEPS stringpiece enforce)
DEPS enforce)

set(CPU_INFO_DEPS gflags glog enforce)
if(WITH_XBYAK)
Expand Down Expand Up @@ -205,7 +205,6 @@ cc_library(
place
phi_place
eigen3
stringpiece
cpu_helper
cpu_info
framework_proto
Expand Down
5 changes: 1 addition & 4 deletions paddle/fluid/platform/device/mlu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ if(NOT WITH_MLU)
return()
endif()

cc_test(
mlu_enforce_test
SRCS enforce_test.cc
DEPS stringpiece)
cc_test(mlu_enforce_test SRCS enforce_test.cc)
cc_library(
mlu_info
SRCS mlu_info.cc
Expand Down
5 changes: 1 addition & 4 deletions paddle/fluid/platform/device/xpu/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
cc_test(
enforce_xpu_test
SRCS enforce_xpu_test.cc
DEPS stringpiece)
cc_test(enforce_xpu_test SRCS enforce_xpu_test.cc)
20 changes: 0 additions & 20 deletions paddle/fluid/string/piece.h

This file was deleted.

8 changes: 0 additions & 8 deletions paddle/utils/string/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
cc_library(
stringpiece
SRCS piece.cc
DEPS flags)
cc_library(
pretty_log
SRCS pretty_log.cc
Expand All @@ -10,10 +6,6 @@ cc_library(
string_helper
SRCS string_helper.cc
DEPS flags)
cc_test(
stringpiece_test
SRCS piece_test.cc
DEPS stringpiece gflags)
cc_test(
stringprintf_test
SRCS printf_test.cc
Expand Down
148 changes: 0 additions & 148 deletions paddle/utils/string/piece.cc

This file was deleted.

105 changes: 0 additions & 105 deletions paddle/utils/string/piece.h

This file was deleted.

Loading

0 comments on commit e435d69

Please sign in to comment.