From 2a1bd0d7fec51ea91cee0406805f608e79cb8876 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 30 Mar 2012 16:45:47 +0200 Subject: [PATCH] c++: locations: remove useless "inline". * data/location.cc: "inline" is implicit when defining methods in the class definition. --- data/location.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/data/location.cc b/data/location.cc index f4fc9cc5..30f0a02f 100644 --- a/data/location.cc +++ b/data/location.cc @@ -50,7 +50,7 @@ b4_copyright([Positions for Bison parsers in C++], ])[ /// Initialization. - inline void initialize (]b4_percent_define_get([[filename_type]])[* fn = YY_NULL) + void initialize (]b4_percent_define_get([[filename_type]])[* fn = YY_NULL) { filename = fn; line = ]b4_location_initial_line[; @@ -61,14 +61,14 @@ b4_copyright([Positions for Bison parsers in C++], ** \{ */ public: /// (line related) Advance to the COUNT next lines. - inline void lines (int count = 1) + void lines (int count = 1) { column = ]b4_location_initial_column[; line += count; } /// (column related) Advance to the COUNT next columns. - inline void columns (int count = 1) + void columns (int count = 1) { column = std::max (]b4_location_initial_column[u, column + count); } @@ -176,7 +176,7 @@ b4_copyright([Locations for Bison parsers in C++], ])[ /// Initialization. - inline void initialize (]b4_percent_define_get([[filename_type]])[* fn = YY_NULL) + void initialize (]b4_percent_define_get([[filename_type]])[* fn = YY_NULL) { begin.initialize (fn); end = begin; @@ -186,19 +186,19 @@ b4_copyright([Locations for Bison parsers in C++], ** \{ */ public: /// Reset initial location to final location. - inline void step () + void step () { begin = end; } /// Extend the current location to the COUNT next columns. - inline void columns (unsigned int count = 1) + void columns (unsigned int count = 1) { end += count; } /// Extend the current location to the COUNT next lines. - inline void lines (unsigned int count = 1) + void lines (unsigned int count = 1) { end.lines (count); } -- 2.47.2