From 21744217cea9bb8f767f47cb6c41446563e645ac Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 17 Oct 2018 12:43:41 +0200 Subject: Cleanup: remove some #if 0 blocks Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D3802 --- source/blender/alembic/intern/alembic_capi.cc | 33 --------------------------- 1 file changed, 33 deletions(-) (limited to 'source/blender/alembic') diff --git a/source/blender/alembic/intern/alembic_capi.cc b/source/blender/alembic/intern/alembic_capi.cc index e295b85afd2..82ebad0bbc2 100644 --- a/source/blender/alembic/intern/alembic_capi.cc +++ b/source/blender/alembic/intern/alembic_capi.cc @@ -648,39 +648,6 @@ struct ImportJobData { bool import_ok; }; -#if 0 -ABC_INLINE bool is_mesh_and_strands(const IObject &object) -{ - bool has_mesh = false; - bool has_curve = false; - - for (int i = 0; i < object.getNumChildren(); ++i) { - const IObject &child = object.getChild(i); - - if (!child.valid()) { - continue; - } - - const MetaData &md = child.getMetaData(); - - if (IPolyMesh::matches(md)) { - has_mesh = true; - } - else if (ISubD::matches(md)) { - has_mesh = true; - } - else if (ICurves::matches(md)) { - has_curve = true; - } - else if (IPoints::matches(md)) { - has_curve = true; - } - } - - return has_mesh && has_curve; -} -#endif - static void import_startjob(void *user_data, short *stop, short *do_update, float *progress) { SCOPE_TIMER("Alembic import, objects reading and creation"); -- cgit v1.2.3