Skip to content

Commit

Permalink
Remove unused type aliases and clean up formatting.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 331189417
  • Loading branch information
aaronnash authored and nickgeorge committed Sep 29, 2020
1 parent f042f19 commit 74406db
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 27 deletions.
1 change: 0 additions & 1 deletion cc/google/fhir/fhir_path/fhir_path_validation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ namespace google {
namespace fhir {
namespace fhir_path {

using ::google::fhir::ForEachMessage;
using ::google::fhir::GetPotentiallyRepeatedMessage;
using ::google::fhir::PotentiallyRepeatedFieldSize;
using ::google::protobuf::Descriptor;
Expand Down
1 change: 0 additions & 1 deletion cc/google/fhir/json_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ using ::google::fhir::IsChoiceType;
using ::google::fhir::IsPrimitive;
using ::google::fhir::IsReference;
using ::google::fhir::IsResource;
using ::google::fhir::extensions_lib::ClearTypedExtensions;
using ::google::fhir::proto::FhirVersion;
using ::google::protobuf::Any;
using ::google::protobuf::Descriptor;
Expand Down
25 changes: 13 additions & 12 deletions cc/google/fhir/util_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ using ::google::fhir::testutil::EqualsProto;
using ::google::fhir::stu3::proto::AllergyIntolerance;
using ::google::fhir::stu3::proto::EncounterStatusCode;
using ::google::fhir::stu3::proto::Patient;
using ::google::fhir::stu3::proto::Reference;

using ::google::protobuf::Descriptor;
using ::google::protobuf::Message;
Expand Down Expand Up @@ -363,19 +362,21 @@ TEST(Util, UnpackAnyAsContainedResourceR4CustomFactory) {
TEST(Util, UnpackAnyAsContainedResourceR4NonStandardIG) {
r4::testing::TestObservation med_req = PARSE_VALID_FHIR_PROTO(
R"proto(
status {value: FINAL}
code { sys_a { code {value: "blah"} } }
status { value: FINAL }
code { sys_a { code { value: "blah" } } }
)proto");

r4::testing::ContainedResource contained_encounter =
PARSE_VALID_FHIR_PROTO(
R"proto(
test_encounter {
status {value: FINISHED}
class_value { system {value: "foo"} code {value: "bar"} }
priority { act { code {value: EM} } }
}
)proto");
r4::testing::ContainedResource contained_encounter = PARSE_VALID_FHIR_PROTO(
R"proto(
test_encounter {
status { value: FINISHED }
class_value {
system { value: "foo" }
code { value: "bar" }
}
priority { act { code { value: EM } } }
}
)proto");

med_req.add_contained()->PackFrom(contained_encounter);

Expand Down
5 changes: 0 additions & 5 deletions examples/bulkdata/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,4 @@ py_binary(
name = "bulkload",
srcs = ["bulkload.py"],
python_version = "PY3",
deps = [
"@absl_py//absl:app",
"@absl_py//absl/flags",
requirement("requests"),
],
)
10 changes: 2 additions & 8 deletions py/google/fhir/testing/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,12 @@ py_library(
name = "protobuf_compare",
srcs = ["protobuf_compare.py"],
srcs_version = "PY3",
deps = [
"@absl_py//absl/testing:absltest",
"@com_google_protobuf//:protobuf_python",
],
deps = ["@com_google_protobuf//:protobuf_python"],
)

py_library(
name = "testdata_utils",
srcs = ["testdata_utils.py"],
srcs_version = "PY3",
deps = [
"@absl_py//absl/flags",
"@com_google_protobuf//:protobuf_python",
],
deps = ["@com_google_protobuf//:protobuf_python"],
)

0 comments on commit 74406db

Please sign in to comment.