Skip to content

Commit c6b34c4

Browse files
rm deprecated functions
1 parent 07b18b3 commit c6b34c4

19 files changed

Lines changed: 1 addition & 202 deletions

‎include/livekit/audio_frame.h‎

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -78,34 +78,6 @@ class LIVEKIT_API AudioFrame {
7878
/// A human-readable description.
7979
std::string toString() const;
8080

81-
/// @deprecated Use totalSamples() instead.
82-
[[deprecated("AudioFrame::total_samples is deprecated; use AudioFrame::totalSamples instead")]]
83-
std::size_t total_samples() const noexcept { // NOLINT(readability-identifier-naming)
84-
return totalSamples();
85-
}
86-
87-
/// @deprecated Use sampleRate() instead.
88-
[[deprecated("AudioFrame::sample_rate is deprecated; use AudioFrame::sampleRate instead")]]
89-
int sample_rate() const noexcept { // NOLINT(readability-identifier-naming)
90-
return sampleRate();
91-
}
92-
93-
/// @deprecated Use numChannels() instead.
94-
[[deprecated("AudioFrame::num_channels is deprecated; use AudioFrame::numChannels instead")]]
95-
int num_channels() const noexcept { // NOLINT(readability-identifier-naming)
96-
return numChannels();
97-
}
98-
99-
/// @deprecated Use samplesPerChannel() instead.
100-
[[deprecated("AudioFrame::samples_per_channel is deprecated; use AudioFrame::samplesPerChannel instead")]]
101-
int samples_per_channel() const noexcept { // NOLINT(readability-identifier-naming)
102-
return samplesPerChannel();
103-
}
104-
105-
/// @deprecated Use toString() instead.
106-
[[deprecated("AudioFrame::to_string is deprecated; use AudioFrame::toString instead")]]
107-
std::string to_string() const; // NOLINT(readability-identifier-naming)
108-
10981
protected:
11082
// Build a proto AudioFrameBufferInfo pointing at this frame’s data.
11183
// Used internally by AudioSource.

‎include/livekit/audio_source.h‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -82,24 +82,6 @@ class LIVEKIT_API AudioSource {
8282
/// Underlying FFI handle ID used in FFI requests.
8383
std::uint64_t ffiHandleId() const noexcept { return static_cast<std::uint64_t>(handle_.get()); }
8484

85-
/// @deprecated Use sampleRate() instead.
86-
[[deprecated("AudioSource::sample_rate is deprecated; use AudioSource::sampleRate instead")]]
87-
int sample_rate() const noexcept { // NOLINT(readability-identifier-naming)
88-
return sampleRate();
89-
}
90-
91-
/// @deprecated Use numChannels() instead.
92-
[[deprecated("AudioSource::num_channels is deprecated; use AudioSource::numChannels instead")]]
93-
int num_channels() const noexcept { // NOLINT(readability-identifier-naming)
94-
return numChannels();
95-
}
96-
97-
/// @deprecated Use ffiHandleId() instead.
98-
[[deprecated("AudioSource::ffi_handle_id is deprecated; use AudioSource::ffiHandleId instead")]]
99-
std::uint64_t ffi_handle_id() const noexcept { // NOLINT(readability-identifier-naming)
100-
return ffiHandleId();
101-
}
102-
10385
/// Current duration of queued audio (in seconds).
10486
double queuedDuration() const noexcept;
10587

‎include/livekit/local_audio_track.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@ class LIVEKIT_API LocalAudioTrack : public Track {
7777
/// including its SID and name. Useful for debugging and logging.
7878
std::string toString() const;
7979

80-
/// @deprecated Use toString() instead.
81-
// NOLINTBEGIN(readability-identifier-naming)
82-
[[deprecated("LocalAudioTrack::to_string is deprecated; use LocalAudioTrack::toString instead")]]
83-
std::string to_string() const;
84-
// NOLINTEND(readability-identifier-naming)
85-
8680
/// Returns the publication that owns this track, or nullptr if the track is
8781
/// not published.
8882
std::shared_ptr<LocalTrackPublication> publication() const noexcept { return local_publication_; }

‎include/livekit/local_video_track.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@ class LIVEKIT_API LocalVideoTrack : public Track {
7777
/// including its SID and name. Useful for debugging and logging.
7878
std::string toString() const;
7979

80-
/// @deprecated Use toString() instead.
81-
// NOLINTBEGIN(readability-identifier-naming)
82-
[[deprecated("LocalVideoTrack::to_string is deprecated; use LocalVideoTrack::toString instead")]]
83-
std::string to_string() const;
84-
// NOLINTEND(readability-identifier-naming)
85-
8680
/// Returns the publication that owns this track, or nullptr if the track is
8781
/// not published.
8882
std::shared_ptr<LocalTrackPublication> publication() const noexcept { return local_publication_; }

‎include/livekit/participant.h‎

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -56,58 +56,6 @@ class LIVEKIT_API Participant {
5656

5757
uintptr_t ffiHandleId() const noexcept { return handle_.get(); }
5858

59-
// ---------------------------------------------------------------------------
60-
// Deprecated public mutators
61-
// ---------------------------------------------------------------------------
62-
63-
// NOLINTBEGIN(readability-identifier-naming)
64-
65-
/// @deprecated Use setName() instead.
66-
[[deprecated("Participant::set_name is deprecated; use LocalParticipant::setName instead")]]
67-
void set_name(std::string name) noexcept {
68-
name_ = std::move(name);
69-
}
70-
71-
/// @deprecated Use setMetadata() instead.
72-
[[deprecated("Participant::set_metadata is deprecated; use LocalParticipant::setMetadata instead")]]
73-
void set_metadata(std::string metadata) noexcept {
74-
metadata_ = std::move(metadata);
75-
}
76-
77-
/// @deprecated Use setAttributes() instead.
78-
[[deprecated("Participant::set_attributes is deprecated; use LocalParticipant::setAttributes instead")]]
79-
void set_attributes(std::unordered_map<std::string, std::string> attrs) noexcept {
80-
attributes_ = std::move(attrs);
81-
}
82-
83-
/// @deprecated Use setAttribute() instead.
84-
[[deprecated("Participant::set_attribute is deprecated; use LocalParticipant::setAttributes instead")]]
85-
void set_attribute(const std::string& key, const std::string& value) {
86-
attributes_[key] = value;
87-
}
88-
89-
/// @deprecated Use removeAttribute() instead.
90-
[[deprecated("Participant::remove_attribute is deprecated; use LocalParticipant::setAttributes instead")]]
91-
void remove_attribute(const std::string& key) {
92-
attributes_.erase(key);
93-
}
94-
95-
/// @deprecated Kind is server-determined and not user-settable; this mutator will be removed.
96-
[[deprecated("Participant::set_kind is deprecated; Kind is server-determined and not user-settable")]]
97-
void set_kind(ParticipantKind kind) noexcept {
98-
kind_ = kind;
99-
}
100-
101-
/// @deprecated DisconnectReason is server-determined and not user-settable; this mutator will be removed.
102-
[[deprecated(
103-
"Participant::set_disconnect_reason is deprecated; DisconnectReason is server-determined and not "
104-
"user-settable")]]
105-
void set_disconnect_reason(DisconnectReason reason) noexcept {
106-
reason_ = reason;
107-
}
108-
109-
// NOLINTEND(readability-identifier-naming)
110-
11159
protected:
11260
virtual std::shared_ptr<TrackPublication> findTrackPublication(const std::string& sid) const = 0;
11361

‎include/livekit/remote_audio_track.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ class LIVEKIT_API RemoteAudioTrack : public Track {
5151
/// including its SID and name. Useful for debugging and logging.
5252
std::string toString() const;
5353

54-
/// @deprecated Use toString() instead.
55-
// NOLINTBEGIN(readability-identifier-naming)
56-
[[deprecated("RemoteAudioTrack::to_string is deprecated; use RemoteAudioTrack::toString instead")]]
57-
std::string to_string() const;
58-
// NOLINTEND(readability-identifier-naming)
5954
};
6055

6156
} // namespace livekit

‎include/livekit/remote_participant.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ class LIVEKIT_API RemoteParticipant : public Participant {
4444

4545
std::string toString() const;
4646

47-
/// @deprecated Use toString() instead.
48-
// NOLINTBEGIN(readability-identifier-naming)
49-
[[deprecated("RemoteParticipant::to_string is deprecated; use RemoteParticipant::toString instead")]]
50-
std::string to_string() const;
51-
// NOLINTEND(readability-identifier-naming)
52-
5347
protected:
5448
/// Called by Room events like kTrackMuted. This is internal plumbing and not
5549
/// intended to be called directly by SDK users.

‎include/livekit/remote_video_track.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ class LIVEKIT_API RemoteVideoTrack : public Track {
5151
/// including its SID and name. Useful for debugging and logging.
5252
std::string toString() const;
5353

54-
/// @deprecated Use toString() instead.
55-
// NOLINTBEGIN(readability-identifier-naming)
56-
[[deprecated("RemoteVideoTrack::to_string is deprecated; use RemoteVideoTrack::toString instead")]]
57-
std::string to_string() const;
58-
// NOLINTEND(readability-identifier-naming)
5954
};
6055

6156
} // namespace livekit

‎include/livekit/result.h‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,6 @@ class [[nodiscard]] Result {
5858
/// Allows `if (result)` style success checks.
5959
explicit operator bool() const noexcept { return ok(); }
6060

61-
/// @deprecated Use hasError() instead.
62-
// NOLINTBEGIN(readability-identifier-naming)
63-
[[deprecated("Result::has_error is deprecated; use Result::hasError instead")]]
64-
bool has_error() const noexcept {
65-
return hasError();
66-
}
67-
// NOLINTEND(readability-identifier-naming)
68-
6961
/// Access the success value.
7062
///
7163
/// @throws std::logic_error if `ok() == false`.

‎include/livekit/room.h‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,6 @@ class LIVEKIT_API Room {
129129
/// automatically, and no remote audio/video will ever arrive.
130130
bool connect(const std::string& url, const std::string& token, const RoomOptions& options);
131131

132-
/// @deprecated Use connect() instead.
133-
// NOLINTBEGIN(readability-identifier-naming)
134-
[[deprecated("Room::Connect is deprecated; use Room::connect instead")]]
135-
bool Connect(const std::string& url, const std::string& token, const RoomOptions& options);
136-
// NOLINTEND(readability-identifier-naming)
137-
138132
// Accessors
139133

140134
/// Retrieve static metadata about the room.
@@ -146,12 +140,6 @@ class LIVEKIT_API Room {
146140
/// - creation timestamp
147141
RoomInfoData roomInfo() const;
148142

149-
/// @deprecated Use roomInfo() instead.
150-
// NOLINTBEGIN(readability-identifier-naming)
151-
[[deprecated("Room::room_info is deprecated; use Room::roomInfo instead")]]
152-
RoomInfoData room_info() const;
153-
// NOLINTEND(readability-identifier-naming)
154-
155143
/// Get the local participant.
156144
///
157145
/// This object represents the current user, including:

0 commit comments

Comments
 (0)