Removed dangerous getter

This commit is contained in:
Leonetienne 2022-03-06 19:06:02 +01:00
parent 3dd5e23bb7
commit f70c7782ca
2 changed files with 0 additions and 8 deletions

View File

@ -206,11 +206,6 @@ namespace Leonetienne::BmpPP {
return isInitialized;
}
std::vector<std::uint8_t> &BMP::GetPixelbuffer() {
CHECK_IF_INITIALIZED
return pixelBuffer;
}
const std::vector<std::uint8_t> &BMP::GetPixelbuffer() const {
CHECK_IF_INITIALIZED
return pixelBuffer;

View File

@ -49,9 +49,6 @@ namespace Leonetienne::BmpPP {
//! Will return a pointer to the raw pixel data
[[nodiscard]] const std::uint8_t* data() const;
//! Will return the actual vector containing the raw pixel data
[[nodiscard]] std::vector<std::uint8_t>& GetPixelbuffer();
//! Will return the actual vector containing the raw pixel data
[[nodiscard]] const std::vector<std::uint8_t>& GetPixelbuffer() const;