Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e167e6d

Browse files
Get rid of StampUnbounded base class. It makes code more comples, instead of making it more simple
1 parent c9a00e2 commit e167e6d

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

blobstamper/stamp.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,4 @@ StampBaseV<T>::ExtractBin(Blob &blob)
107107
return v;
108108
}
109109

110-
class StampUnbounded : public virtual StampBase
111-
{
112-
protected:
113-
int min_size;
114-
public:
115-
virtual int minSize() override {return min_size;}
116-
virtual int maxSize() override {return -1;}
117-
};
118-
119110
#endif /* STAMP_H */

t/test-chars-stamps.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ StampSeveralChars::ExtractStr(Blob &blob)
7474
return res;
7575
}
7676

77-
class StampTwoCharsList: public StampUnbounded, public StampBaseStr
77+
/*****************************************************************************/
78+
class StampTwoCharsList: public StampBaseStr
7879
{
7980
protected:
8081
StampTwoChars el_stamp;
@@ -84,6 +85,7 @@ class StampTwoCharsList: public StampUnbounded, public StampBaseStr
8485
StampTwoCharsList(): el_stamp {}, galley {el_stamp} {};
8586

8687
virtual int minSize() override {return el_stamp.minSize();};
88+
virtual int maxSize() override {return -1;};
8789
};
8890

8991
std::string

0 commit comments

Comments
 (0)