Skip to content

Commit

Permalink
#1996 Removed AllocInc
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Dec 29, 2021
1 parent 1fcbbef commit 2e48bfa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
21 changes: 0 additions & 21 deletions met/src/basic/vx_log/concat_string.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ ConcatString::ConcatString()

init_from_scratch();

set_alloc_inc(default_cs_alloc_inc);

}


Expand All @@ -64,8 +62,6 @@ ConcatString::ConcatString(int _alloc_inc)

init_from_scratch();

set_alloc_inc(_alloc_inc);

}


Expand Down Expand Up @@ -237,23 +233,6 @@ void ConcatString::assign(const ConcatString & c)

memcpy(FloatFormat, c.FloatFormat, sizeof(FloatFormat));
Precision = c.Precision;
AllocInc = c.AllocInc;
}


////////////////////////////////////////////////////////////////////////


void ConcatString::set_alloc_inc(int _alloc_inc)

{

if ( _alloc_inc < min_cs_alloc_inc ) _alloc_inc = min_cs_alloc_inc;

AllocInc = _alloc_inc;

return;

}


Expand Down
8 changes: 0 additions & 8 deletions met/src/basic/vx_log/concat_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ class ConcatString {

void assign(const ConcatString &);

void extend(int);

int AllocInc;

int Precision;

char FloatFormat[16];
Expand Down Expand Up @@ -102,8 +98,6 @@ class ConcatString {
// set stuff
//

void set_alloc_inc(int);

void set_precision(int);

//
Expand Down Expand Up @@ -207,8 +201,6 @@ inline int ConcatString::precision() const { return ( Precision ); }

inline const char * ConcatString::float_format() const { return ( FloatFormat ); }

inline int ConcatString::alloc_inc() const { return ( AllocInc ); }

inline bool ConcatString::empty() const { return ( s ? s->empty() : true ); }
inline bool ConcatString::nonempty() const { return ( s ? !s->empty() : false ); }

Expand Down

0 comments on commit 2e48bfa

Please sign in to comment.