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

Commit 01ebd083 authored by Yi Kong's avatar Yi Kong
Browse files

Remove dead code

'this' pointer cannot be null; comparison would always evaluate to
false. Delete the dead code.

Test: m checkbuild
Change-Id: Idb44753b775ed51918c19be64f8d14b0b7a20daf
parent 2465cd3c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -122,7 +122,6 @@ void GraphicBuffer::dumpAllocationsToSystemLog()

ANativeWindowBuffer* GraphicBuffer::getNativeBuffer() const
{
    LOG_ALWAYS_FATAL_IF(this == NULL, "getNativeBuffer() called on NULL GraphicBuffer");
    return static_cast<ANativeWindowBuffer*>(
            const_cast<GraphicBuffer*>(this));
}