Android: hide abseil headers. am: 8a38723492
Original change: https://android-review.googlesource.com/c/platform/external/openscreen/+/1558662
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I3ba99846ca55803f1895693dbdaa2300ba51f0f3
diff --git a/util/std_util.h b/util/std_util.h
index ca65483..2b74a3e 100644
--- a/util/std_util.h
+++ b/util/std_util.h
@@ -11,7 +11,11 @@
#include <utility>
#include <vector>
+// TODO: This header is included in the openscreen discovery public headers (dns_sd_instance.h),
+// which exposes this abseil header. Need to figure out a way to hide it.
+#if 0
#include "absl/algorithm/container.h"
+#endif
#include "util/stringprintf.h"
namespace openscreen {
@@ -47,10 +51,12 @@
}
}
+#if 0
template <typename ForwardIteratingContainer>
bool AreElementsSortedAndUnique(const ForwardIteratingContainer& c) {
return absl::c_is_sorted(c) && (absl::c_adjacent_find(c) == c.end());
}
+#endif
template <typename RandomAccessContainer>
void SortAndDedupeElements(RandomAccessContainer* c) {
diff --git a/util/stringprintf.h b/util/stringprintf.h
index 0e7984e..0de394e 100644
--- a/util/stringprintf.h
+++ b/util/stringprintf.h
@@ -10,7 +10,11 @@
#include <ostream>
#include <string>
+// TODO: This header is included in the openscreen discovery public headers (dns_sd_instance.h),
+// which exposes this abseil header. Need to figure out a way to hide it.
+#if 0
#include "absl/types/span.h"
+#endif
namespace openscreen {
@@ -54,8 +58,10 @@
}
}
+#if 0
// Returns a hex string representation of the given |bytes|.
std::string HexEncode(absl::Span<const uint8_t> bytes);
+#endif
} // namespace openscreen