Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1945)

Unified Diff: ppapi/shared_impl/ppb_device_ref_shared.cc

Issue 115343006: Pepper: Remove unused interface versions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Delete more dead code Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/shared_impl/ppb_device_ref_shared.cc
diff --git a/ppapi/shared_impl/ppb_device_ref_shared.cc b/ppapi/shared_impl/ppb_device_ref_shared.cc
index 4f9c14c09a25ca0c87fa6a4fa1d08516472e3e6e..bb0dd52515a0af990086802a80baf080c2a2a3e5 100644
--- a/ppapi/shared_impl/ppb_device_ref_shared.cc
+++ b/ppapi/shared_impl/ppb_device_ref_shared.cc
@@ -42,29 +42,4 @@ PP_Var PPB_DeviceRef_Shared::GetName() {
return StringVar::StringToPPVar(data_.name);
}
-// static
-PP_Resource PPB_DeviceRef_Shared::CreateResourceArray(
- ResourceObjectType type,
- PP_Instance instance,
- const std::vector<DeviceRefData>& devices) {
- scoped_ptr<PP_Resource[]> elements;
- size_t size = devices.size();
- if (size > 0) {
- elements.reset(new PP_Resource[size]);
- for (size_t index = 0; index < size; ++index) {
- PPB_DeviceRef_Shared* device_object =
- new PPB_DeviceRef_Shared(type, instance, devices[index]);
- elements[index] = device_object->GetReference();
- }
- }
- PPB_ResourceArray_Shared* array_object =
- new PPB_ResourceArray_Shared(type, instance, elements.get(),
- static_cast<uint32_t>(size));
-
- for (size_t index = 0; index < size; ++index)
- PpapiGlobals::Get()->GetResourceTracker()->ReleaseResource(elements[index]);
-
- return array_object->GetReference();
-}
-
} // namespace ppapi

Powered by Google App Engine
This is Rietveld 408576698