From a961788132137faafaeef01ac4bc2f7db92089fc Mon Sep 17 00:00:00 2001 From: Georgi Filipov Date: Tue, 24 Dec 2024 03:06:19 +0200 Subject: [PATCH] Remove unnecessary const from function declarations --- .../climate_ir_samsung/climate_ir_samsung.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/esphome/components/climate_ir_samsung/climate_ir_samsung.h b/esphome/components/climate_ir_samsung/climate_ir_samsung.h index 02adf28be4..daeec4246a 100644 --- a/esphome/components/climate_ir_samsung/climate_ir_samsung.h +++ b/esphome/components/climate_ir_samsung/climate_ir_samsung.h @@ -188,18 +188,16 @@ class SamsungClimateIR : public climate_ir::ClimateIR { void transmit_state() override; void send_(); - void set_swing_(const climate::ClimateSwingMode swing_mode); - void set_mode_(const climate::ClimateMode climate_mode); - void set_temp_(const uint8_t temp); + void set_swing_(climate::ClimateSwingMode swing_mode); + void set_mode_(climate::ClimateMode climate_mode); + void set_temp_(uint8_t temp); void set_and_send_power_state_(const bool on); - void set_fan_(const climate::ClimateFanMode fan_mode); + void set_fan_(climate::ClimateFanMode fan_mode); void checksum_(); static uint8_t calc_section_checksum(const uint8_t *section); - static uint16_t count_bits(const uint8_t *const start, const uint16_t length, const bool ones = true, - const uint16_t init = 0); - static uint16_t count_bits(const uint64_t data, const uint8_t length, const bool ones = true, - const uint16_t init = 0); + static uint16_t count_bits(uint8_t *start, uint16_t length, bool ones = true, uint16_t init = 0); + static uint16_t count_bits(uint64_t data, uint8_t length, bool ones = true, uint16_t init = 0); }; } // namespace climate_ir_samsung } // namespace esphome