From 16ed78a1725d4c69dd5ff090f050673fb910a4d8 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Fri, 10 Feb 2017 07:08:08 +0200 Subject: ExtFb: remove legacy constructor --- kms++/inc/kms++/extframebuffer.h | 1 - kms++/src/extframebuffer.cpp | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/kms++/inc/kms++/extframebuffer.h b/kms++/inc/kms++/extframebuffer.h index eab7e3c..227a576 100644 --- a/kms++/inc/kms++/extframebuffer.h +++ b/kms++/inc/kms++/extframebuffer.h @@ -9,7 +9,6 @@ namespace kms class ExtFramebuffer : public Framebuffer { public: - ExtFramebuffer(Card& card, uint32_t width, uint32_t height, uint8_t depth, uint8_t bpp, uint32_t stride, uint32_t handle); ExtFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format, uint32_t handles[4], uint32_t pitches[4], uint32_t offsets[4]); ExtFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format, diff --git a/kms++/src/extframebuffer.cpp b/kms++/src/extframebuffer.cpp index 0ade454..1af2f62 100644 --- a/kms++/src/extframebuffer.cpp +++ b/kms++/src/extframebuffer.cpp @@ -12,17 +12,6 @@ using namespace std; namespace kms { -ExtFramebuffer::ExtFramebuffer(Card& card, uint32_t width, uint32_t height, uint8_t depth, uint8_t bpp, uint32_t stride, uint32_t handle) - :Framebuffer(card, width, height) -{ - uint32_t id; - int r = drmModeAddFB(card.fd(), width, height, depth, bpp, stride, handle, &id); - if (r) - throw invalid_argument("fob"); - - set_id(id); -} - ExtFramebuffer::ExtFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format, uint32_t handles[], uint32_t pitches[], uint32_t offsets[]) : Framebuffer(card, width, height) -- cgit v1.2.3