]> granicus.if.org Git - graphviz/commitdiff
remove an unnecessary destructor
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 16 Nov 2020 00:32:27 +0000 (16:32 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 23 Jan 2021 18:00:36 +0000 (10:00 -0800)
These vector members of the class are automatically cleared when an object of
this type is destructed.

lib/vpsc/variable.h

index e284d8c3342c0e1538c586e6271722bd3ba4ca5e..30bf3d627e5a55319119ce9a5e1addcd62aa08d5 100644 (file)
@@ -50,10 +50,5 @@ public:
        inline double position() const {
                return block->posn+offset;
        }
-       //double position() const;
-       ~Variable(void){
-               in.clear();
-               out.clear();
-       }
 };
 #endif // SEEN_REMOVEOVERLAP_VARIABLE_H