Skip to content

Commit

Permalink
First stab at removing legacy API
Browse files Browse the repository at this point in the history
  • Loading branch information
woodfell committed Mar 3, 2024
1 parent 9415861 commit 2a1c3d9
Show file tree
Hide file tree
Showing 661 changed files with 2,211 additions and 278,551 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ gen-c:
$(call announce-begin,"Formatting C code")

cd $(SWIFTNAV_ROOT)/c; \
mkdir -p build/ && cd build/; \
mkdir -p build.format/ && cd build.format/; \
cmake $(CMAKEFLAGS) ../; \
$(MAKE) clang-format-all

Expand Down
43 changes: 0 additions & 43 deletions c/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -67,30 +67,6 @@ filegroup(
visibility = ["//visibility:public"],
)

SBP_LEGACY_C_SOURCES = glob(["test/legacy/auto*.c"])

swift_cc_test(
name = "sbp-legacy-test",
srcs = [
"test/check_main_legacy.c",
"test/check_edc.c",
"test/check_sbp.c",
"test/check_bitfield_macros.c",
"test/check_suites_legacy.h",
] + SBP_LEGACY_C_SOURCES,
includes = [
"include/libsbp",
],
copts = [
"-Wno-deprecated-declarations",
],
type = UNIT,
deps = [
":sbp",
"@check",
],
)

SBP_C_SOURCES = glob(["test/auto*.c"])

swift_cc_test(
Expand Down Expand Up @@ -140,22 +116,3 @@ swift_cc_test(
],
)

SBP_CPP_LEGACY_SOURCES = glob(["test/legacy/cpp/auto*.cc"])

swift_cc_test(
name = "sbp-cpp-legacy-test",
srcs = [
"test/legacy/cpp/test_sbp_stdio.cc",
] + SBP_CPP_LEGACY_SOURCES,
data = [
"test/legacy/cpp/sbp_data/gnss_data.sbp",
],
copts = [
"-Wno-deprecated-declarations",
],
type = UNIT,
deps = [
":sbp",
"@googletest//:gtest_main",
],
)
1 change: 0 additions & 1 deletion c/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ option(BUILD_EXAMPLES "" OFF)

if(BUILD_EXAMPLES)
add_custom_target(examples)
add_subdirectory(legacy)
add_subdirectory(libsbp)
endif()
4 changes: 0 additions & 4 deletions c/examples/legacy/CMakeLists.txt

This file was deleted.

15 changes: 0 additions & 15 deletions c/examples/legacy/cpp_example/CMakeLists.txt

This file was deleted.

49 changes: 0 additions & 49 deletions c/examples/legacy/cpp_example/README.md

This file was deleted.

118 changes: 0 additions & 118 deletions c/examples/legacy/cpp_example/cpp_example.cc

This file was deleted.

18 changes: 0 additions & 18 deletions c/examples/legacy/example/CMakeLists.txt

This file was deleted.

53 changes: 0 additions & 53 deletions c/examples/legacy/example/README.md

This file was deleted.

Loading

0 comments on commit 2a1c3d9

Please sign in to comment.