From b065c816acd9714bae1a6d1a450847b6adab1046 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 25 Feb 2018 21:36:45 +0100 Subject: [PATCH] fb_generic: remove unused virtual_fb variable Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/264124e7c4c504d9bed9252e83d6439874d57021 Author: Stefan Seyfried Date: 2018-02-25 (Sun, 25 Feb 2018) --- src/driver/fb_generic.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/driver/fb_generic.cpp b/src/driver/fb_generic.cpp index b64edceda..499fa2799 100644 --- a/src/driver/fb_generic.cpp +++ b/src/driver/fb_generic.cpp @@ -68,7 +68,6 @@ void CFrameBuffer::waitForIdle(const char *) /*******************************************************************************/ -static uint8_t * virtual_fb = NULL; inline unsigned int make16color(uint16_t r, uint16_t g, uint16_t b, uint16_t t, uint32_t /*rl*/ = 0, uint32_t /*ro*/ = 0, uint32_t /*gl*/ = 0, uint32_t /*go*/ = 0, @@ -235,10 +234,6 @@ CFrameBuffer::~CFrameBuffer() munmap(lfb, available); lfb = NULL; - if (virtual_fb){ - delete[] virtual_fb; - virtual_fb = NULL; - } close(fd); fd = -1; @@ -296,10 +291,7 @@ unsigned int CFrameBuffer::getScreenY() fb_pixel_t * CFrameBuffer::getFrameBufferPointer() const { - if (active || (virtual_fb == NULL)) - return lbb; - else - return (fb_pixel_t *) virtual_fb; + return lbb; } /* dummy if not implemented in CFbAccel */ @@ -310,7 +302,7 @@ fb_pixel_t * CFrameBuffer::getBackBufferPointer() const bool CFrameBuffer::getActive() const { - return (active || (virtual_fb != NULL)); + return active; } void CFrameBuffer::setActive(bool enable)