summaryrefslogtreecommitdiff
path: root/libkms++
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-03 21:29:45 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-04 22:33:54 +0300
commit4864a696159a510053daf30e3bf96a3b255bb3ed (patch)
treef120bba7a47bfea43fd7fdd5edeb000c7a31ae3b /libkms++
parente952c613c271dac7f4565de2ab151f7368985589 (diff)
Card: remove get_crtc_by_index
Diffstat (limited to 'libkms++')
-rw-r--r--libkms++/card.cpp5
-rw-r--r--libkms++/card.h1
-rw-r--r--libkms++/encoder.cpp2
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);
}