aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElnar Dakeshov <elnar.dakeshov@gmail.com>2021-10-01 04:46:26 -0700
committerGitHub <noreply@github.com>2021-10-01 20:46:26 +0900
commit097ad6a826336a76e42a27e6e531da7dbdf3fd01 (patch)
tree2705d4ade8343e4d1237312abbe0bc6f04997be6
parent3e401b55a4a9ebfc6344a8a2a698245e7d3fc09e (diff)
downloadtinyobjloader-097ad6a826336a76e42a27e6e531da7dbdf3fd01.tar.gz
Remove unnecessary ObjReader destructor (#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.
-rw-r--r--tiny_obj_loader.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/tiny_obj_loader.h b/tiny_obj_loader.h
index c4bb454..38c8bd7 100644
--- a/tiny_obj_loader.h
+++ b/tiny_obj_loader.h
@@ -531,7 +531,6 @@ struct ObjReaderConfig {
class ObjReader {
public:
ObjReader() : valid_(false) {}
- ~ObjReader() {}
///
/// Load .obj and .mtl from a file.