]> git.lyx.org Git - lyx.git/commitdiff
Remove unused struct members
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 30 Aug 2016 15:06:13 +0000 (17:06 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 30 Aug 2016 15:08:49 +0000 (17:08 +0200)
Interestingly, cppcheck detected that they were not initialized (see
8a047a41), but not that they were unused.

src/mathed/InsetMathGrid.cpp
src/mathed/InsetMathGrid.h

index 403ee86d9d5821ae65269470ca1748be40b1a762..9e41c9783aa9441e5a83742265c49f61aa205216 100644 (file)
@@ -82,7 +82,7 @@ static void resetGrid(InsetMathGrid & grid)
 
 
 InsetMathGrid::CellInfo::CellInfo()
-       : multi_(CELL_NORMAL), glue_(0), begin_(0), end_(0)
+       : multi_(CELL_NORMAL)
 {}
 
 
index 426d941f19167bfa43be63ac68481575d7a31d45..de5b64507c9c8fe34195c1e79eaad618911d4a19 100644 (file)
@@ -44,13 +44,6 @@ public:
                Multicolumn multi_;
                /// special multi colums alignment
                docstring align_;
-               /// these should be a per-cell property, but ok to have it here
-               /// for single-column grids like paragraphs
-               mutable int glue_;
-               ///
-               mutable pos_type begin_;
-               ///
-               mutable pos_type end_;
        };
 
        /// additional per-row information