Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated stuff #542

Merged
merged 6 commits into from
Jul 3, 2023
Merged

Remove deprecated stuff #542

merged 6 commits into from
Jul 3, 2023

Conversation

ispeters
Copy link
Contributor

@ispeters ispeters commented Jun 25, 2023

This builds on PRs #538 and #539 to remove the concept of "untyped" Senders and thus stop calling any Senders "typed" (they're all typed).

  • Start deprecating untyped senders #539 made typed_sender<S> an alias for sender<S> so now I can replace all uses of typed_sender<> with sender<> and deprecate typed_sender<>.
  • In the same spirit as Start deprecating untyped senders #539, there's no need to refer to bulk Senders as "typed" so I've renamed typed_bulk_sender<> to bulk_sender<> and deprecated typed_bulk_sender<>.
  • There's no need to call it typed_via() so via() now means what typed_via() meant and we retain typed_via() as a deprecated alias for via().
  • Similarly for typed_via_stream(), via_stream() now means what typed_via_stream() meant and we retain typed_via_stream() as a deprecated alias for via_stream().
  • I'm also deleting three things from sender_concepts.hpp that have been deprecated for a long time.

ispeters added 5 commits June 24, 2023 18:20
PR #539 made `unifex::sender<>` equivalent to `unifex::typed_sender<>`.
This diff replaces all uses of `typed_sender<>` with `sender<>` and
deletes `typed_sender<>`.
In the spirit of PR #539 and the previous diff, this diff banishes the
concept of typed bulk senders by renaming `unifex::typed_bulk_sender<>`
to `unifex::bulk_sender<>`. There's no such thing as an untyped bulk
sender so there's no need to point out that a bulk sender is typed.
PR #538 deleted `unifex::via()`, which was an untyped _Sender_
algorithm, and changed all uses to use `unifex::typed_via()` instead.
This diff recreates the `via.hpp` header; it now defines the "typed via"
algorithm under the name `unifex::via()`. At the same time, this diff
changes `unifex::typed_via` to be a deprecated alias for the `via`
algorithm.
PR #538 deleted `unifex::via_stream()`, which was an untyped _Stream_ algorithm,
and changed all uses to use `unifex::typed_via_stream()` instead. This diff
recreates the `via_stream.hpp` header; it now defines the "typed via stream"
algorithm under the name `unifex::via_stream()`. At the same time, this diff
changes `unifex::typed_via_stream` to be a deprecated alias for the `via_stream`
algorithm.
This diff deletes `operation_t`, `is_connectable_v`, and
`is_connectable` from `sender_concepts.hpp`. All three things have been
deprecated a long time and are not used in Unifex itself.
@ispeters ispeters requested a review from janondrusek June 25, 2023 01:41
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 25, 2023
This diff reinstates `unifex::typed_sender<>` as a deprecated alias for
`unifex::sender<>` and `unifex::typed_bulk_sender<>` as a deprecated
alias for `unifex::bulk_sender<>`.
@ispeters ispeters merged commit 4dfd3a2 into main Jul 3, 2023
@ispeters ispeters deleted the remove_deprecated_stuff branch July 3, 2023 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants