Skip to content

Commit

Permalink
get_data size is now unused, we know the size from the vector
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Oct 7, 2024
1 parent 2984ed7 commit ce033dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions include/dpp/discordvoiceclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,10 @@ struct dave_binary_header_t {
/**
* Get the data package from the packed binary frame, as a vector of uint8_t
* for use in the libdave functions
*
* @param length Length of the data, use the websocket frame size here
* @return data blob
*/
[[nodiscard]] std::vector<uint8_t> get_data(size_t length) const;
[[nodiscard]] std::vector<uint8_t> get_data() const;

/**
* Get transition ID for process_welcome
Expand Down
2 changes: 1 addition & 1 deletion src/dpp/discordvoiceclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ dave_binary_header_t::dave_binary_header_t(const std::string& buffer) {
package.assign(buffer.begin() + (opcode == voice_client_dave_mls_welcome ? 5 : 3), buffer.end());
}

std::vector<uint8_t> dave_binary_header_t::get_data(size_t length) const {
std::vector<uint8_t> dave_binary_header_t::get_data() const {
return package;
}

Expand Down

0 comments on commit ce033dc

Please sign in to comment.