Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad9a91a0 authored by Ryan Prichard's avatar Ryan Prichard
Browse files

binder_parcel_utils: remove unreachable code

Most other static_assert(dependent_false_v<T>, ...) lines also don't
have code after the assert.

Bug: none
Test: treehugger
Change-Id: I0be8837f924f6b32824004ad860f3b915178a0d4
parent 58896655
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1639,7 +1639,6 @@ static inline binder_status_t AParcel_writeData(AParcel* parcel, const T& value)
        return AParcel_writeParcelable(parcel, value);
    } else {
        static_assert(dependent_false_v<T>, "unrecognized type");
        return STATUS_OK;
    }
}

@@ -1707,7 +1706,6 @@ static inline binder_status_t AParcel_readData(const AParcel* parcel, T* value)
        return AParcel_readParcelable(parcel, value);
    } else {
        static_assert(dependent_false_v<T>, "unrecognized type");
        return STATUS_OK;
    }
}