Card: remove get_crtc_by_index
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 3 Jun 2016 18:29:45 +0000 (21:29 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Sat, 4 Jun 2016 19:33:54 +0000 (22:33 +0300)
libkms++/card.cpp
libkms++/card.h
libkms++/encoder.cpp

index 23a6840b30a40cf32724adf3d2d39a51882ac0d0..504aa61e5b3e39c9a1c0b7643f248f6f5f032426 100644 (file)
@@ -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)); }
index baae9151e1dd1010528eab9fd7e0649fde425100..5ecaecf429560ab18a0ec82855754d36a3397294 100644 (file)
@@ -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;
index 34e9c364b6bfbe83ae9091728164cb7a195fcf81..1ed2d5cc5831dc08c86528b513040b250ebd70f0 100644 (file)
@@ -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);
        }