Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 097ad6a

Browse files
authored
Remove unnecessary ObjReader destructor (tinyobjloader#322)
The destructor serves no purpose and is a pessimization in case the `ObjReader` class is every returned or moved around, as it inhibits move-constructor generation in C++11 and above.
1 parent 3e401b5 commit 097ad6a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tiny_obj_loader.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,6 @@ struct ObjReaderConfig {
531531
class ObjReader {
532532
public:
533533
ObjReader() : valid_(false) {}
534-
~ObjReader() {}
535534

536535
///
537536
/// Load .obj and .mtl from a file.

0 commit comments

Comments
 (0)