summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmy Liffey <amynka@gentoo.org>2018-01-13 11:22:32 +0100
committerAmy Liffey <amynka@gentoo.org>2018-01-13 11:25:44 +0100
commitbcc5a4f75d7ddd502fc8a7b7ae0f080134987ba2 (patch)
tree9a5df46099e3ff29d4e911dc26b095be70c87b2c /media-gfx/meshlab/files/2016.12/meshlab-2016.12-remove-header.patch
parentsys-kernel/linux-firmware: stable 20180103-r1 for hppa, bug #643476 (diff)
downloadgentoo-bcc5a4f75d7ddd502fc8a7b7ae0f080134987ba2.tar.gz
gentoo-bcc5a4f75d7ddd502fc8a7b7ae0f080134987ba2.tar.bz2
gentoo-bcc5a4f75d7ddd502fc8a7b7ae0f080134987ba2.zip
media-gfx/meshlab: remove readheader
Submitted-by: Jura <me@slie.ru> Closes: https://bugs.gentoo.org/638796 Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'media-gfx/meshlab/files/2016.12/meshlab-2016.12-remove-header.patch')
-rw-r--r--media-gfx/meshlab/files/2016.12/meshlab-2016.12-remove-header.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/media-gfx/meshlab/files/2016.12/meshlab-2016.12-remove-header.patch b/media-gfx/meshlab/files/2016.12/meshlab-2016.12-remove-header.patch
new file mode 100644
index 000000000000..8aeace8546a1
--- /dev/null
+++ b/media-gfx/meshlab/files/2016.12/meshlab-2016.12-remove-header.patch
@@ -0,0 +1,38 @@
+diff -ru vcglib/wrap/io_trimesh/import_nvm.h vcglib/wrap/io_trimesh/import_nvm.h
+--- a/vcglib/wrap/io_trimesh/import_nvm.h 2016-12-29 12:54:58.000000000 +0300
++++ b/vcglib/wrap/io_trimesh/import_nvm.h 2017-12-28 12:20:14.591670159 +0300
+@@ -85,15 +85,6 @@
+ return true;
+ }
+
+-static bool ReadHeader(const char * filename,unsigned int &/*num_cams*/, unsigned int &/*num_points*/){
+- FILE *fp = fopen(filename, "r");
+- if(!fp) return false;
+- ReadHeader(fp);
+- fclose(fp);
+- return true;
+-}
+-
+-
+ static int Open( OpenMeshType &m, std::vector<Shot<ScalarType> > & shots,
+ std::vector<std::string > & image_filenames,
+ const char * filename, CallBackPos *cb=0)
+diff -ru vcglib/wrap/io_trimesh/import_out.h vcglib/wrap/io_trimesh/import_out.h
+--- a/vcglib/wrap/io_trimesh/import_out.h 2016-12-29 12:54:58.000000000 +0300
++++ b/vcglib/wrap/io_trimesh/import_out.h 2017-12-28 12:20:48.434017234 +0300
+@@ -85,15 +85,6 @@
+ return true;
+ }
+
+-static bool ReadHeader(const char * filename,unsigned int &/*num_cams*/, unsigned int &/*num_points*/){
+- FILE *fp = fopen(filename, "r");
+- if(!fp) return false;
+- ReadHeader(fp);
+- fclose(fp);
+- return true;
+-}
+-
+-
+ static int Open( OpenMeshType &m, std::vector<Shot<ScalarType> > & shots,
+ std::vector<std::string > & image_filenames,
+ const char * filename,const char * filename_images, CallBackPos *cb=0)