Skip to content

Commit

Permalink
Remove deprecated types and functions.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 653181004
  • Loading branch information
QrczakMK committed Jul 17, 2024
1 parent 148d799 commit 0996c5c
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 110 deletions.
12 changes: 0 additions & 12 deletions riegeli/base/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -298,18 +298,6 @@ cc_library(
],
)

cc_library(
name = "any_dependency",
hdrs = [
"any_dependency.h",
"any_dependency_initializer.h",
],
deps = [
":any",
"@com_google_absl//absl/base:core_headers",
],
)

cc_library(
name = "iterable",
hdrs = ["iterable.h"],
Expand Down
34 changes: 0 additions & 34 deletions riegeli/base/any_dependency.h

This file was deleted.

29 changes: 0 additions & 29 deletions riegeli/base/any_dependency_initializer.h

This file was deleted.

11 changes: 0 additions & 11 deletions riegeli/base/chain_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,6 @@ class Chain : public WithCompare<Chain> {
return kMaxBytesToCopy;
}

template <
typename T,
std::enable_if_t<std::is_constructible<absl::string_view,
InitializerTargetT<T>&>::value,
int> = 0>
ABSL_DEPRECATED("Use ExternalRef or Chain::Block instead")
static Chain FromExternal(T&& object);
template <typename T>
ABSL_DEPRECATED("Use ExternalRef or Chain::Block instead")
static Chain FromExternal(T&& object, absl::string_view substr);

// Allocated size of an external block containing an external object of type
// `T`.
template <typename T>
Expand Down
13 changes: 0 additions & 13 deletions riegeli/base/chain_details.h
Original file line number Diff line number Diff line change
Expand Up @@ -943,19 +943,6 @@ inline Chain::Blocks::reference Chain::Blocks::back() const {
}
}

template <typename T,
std::enable_if_t<std::is_constructible<absl::string_view,
InitializerTargetT<T>&>::value,
int>>
inline Chain Chain::FromExternal(T&& object) {
return Chain(Block(std::forward<T>(object)));
}

template <typename T>
inline Chain Chain::FromExternal(T&& object, absl::string_view substr) {
return Chain(Block(std::forward<T>(object), substr));
}

template <typename T>
constexpr size_t Chain::kExternalAllocatedSize() {
return RawBlock::kExternalAllocatedSize<T>();
Expand Down
11 changes: 0 additions & 11 deletions riegeli/records/record_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -365,17 +365,6 @@ class RecordWriterBase : public Object {
Options&& set_pad_to_block_boundary(Padding pad_to_block_boundary) && {
return std::move(set_pad_to_block_boundary(pad_to_block_boundary));
}
ABSL_DEPRECATED("Use `set_pad_to_block_boundary(Padding)` instead.")
Options& set_pad_to_block_boundary(bool pad_to_block_boundary) & {
set_pad_to_block_boundary(pad_to_block_boundary ? Padding::kTrue
: Padding::kFalse);
return *this;
}
ABSL_DEPRECATED("Use `set_pad_to_block_boundary(Padding)` instead.")
Options&& set_pad_to_block_boundary(bool pad_to_block_boundary) && {
return std::move(set_pad_to_block_boundary(
pad_to_block_boundary ? Padding::kTrue : Padding::kFalse));
}
Padding pad_to_block_boundary() const { return pad_to_block_boundary_; }

// Maximum number of chunks being encoded in parallel in background. Larger
Expand Down

0 comments on commit 0996c5c

Please sign in to comment.