diff options
Diffstat (limited to 'libkms++')
-rw-r--r-- | libkms++/card.cpp | 5 | ||||
-rw-r--r-- | libkms++/card.h | 1 | ||||
-rw-r--r-- | libkms++/encoder.cpp | 2 |
3 files changed, 1 insertions, 7 deletions
diff --git a/libkms++/card.cpp b/libkms++/card.cpp index 23a6840..504aa61 100644 --- a/libkms++/card.cpp +++ b/libkms++/card.cpp @@ -179,11 +179,6 @@ const vector<DrmObject*> Card::get_objects() const return v; } -Crtc* Card::get_crtc_by_index(uint32_t idx) const -{ - return m_crtcs[idx]; -} - Connector* Card::get_connector(uint32_t id) const { return dynamic_cast<Connector*>(get_object(id)); } Crtc* Card::get_crtc(uint32_t id) const { return dynamic_cast<Crtc*>(get_object(id)); } Encoder* Card::get_encoder(uint32_t id) const { return dynamic_cast<Encoder*>(get_object(id)); } diff --git a/libkms++/card.h b/libkms++/card.h index baae915..5ecaecf 100644 --- a/libkms++/card.h +++ b/libkms++/card.h @@ -29,7 +29,6 @@ public: DrmObject* get_object(uint32_t id) const; Connector* get_connector(uint32_t id) const; Crtc* get_crtc(uint32_t id) const; - Crtc* get_crtc_by_index(uint32_t idx) const; Encoder* get_encoder(uint32_t id) const; Plane* get_plane(uint32_t id) const; Property* get_prop(uint32_t id) const; diff --git a/libkms++/encoder.cpp b/libkms++/encoder.cpp index 34e9c36..1ed2d5c 100644 --- a/libkms++/encoder.cpp +++ b/libkms++/encoder.cpp @@ -62,7 +62,7 @@ vector<Crtc*> Encoder::get_possible_crtcs() const if ((bits & 1) == 0) continue; - auto crtc = card().get_crtc_by_index(idx); + auto crtc = card().get_crtcs()[idx]; crtcs.push_back(crtc); } |