chore: remove dead code and unused abstractions (#31437)

This commit is contained in:
andig 2026-07-05 10:03:23 +02:00 • committed by GitHub
parent f0bc3e4ddf
commit 67f7f286ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 35 additions and 470 deletions

View file

@ -18,8 +18,8 @@ func (h *msgHandler) receive(payload string) {
h.val.Set(payload)
}
// hasValue returned the received and processed payload as string
func (h *msgHandler) hasValue() (string, error) {
// value returns the received and processed payload as string
func (h *msgHandler) value() (string, error) {
payload, err := h.val.GetContext(h.ctx)
if err != nil {
return "", err
@ -36,12 +36,3 @@ func (h *msgHandler) hasValue() (string, error) {
return payload, nil
}
func (h *msgHandler) value() (string, error) {
v, err := h.hasValue()
if err != nil {
return "", err
}
return v, nil
}