Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Conversation

@dawagner
Copy link
Contributor

@krocard @tcahuzax please review

@@            master    #361   diff @@
======================================
Files          211     211
Stmts         7182    7169    -13
Branches         0       0
Methods          0       0
======================================
- Hit           5767    5760     -7
Partial          0       0
+ Missed        1415    1409     -6

Review entire Coverage Diff as of 163147e

Powered by Codecov. Updated on successful CI builds.

  

The CBitParameterType::isEncodable private method wasn't used and as such was
dead code.

Signed-off-by: David Wagner <david.wagner@intel.com>
@codecov-io
Copy link

Current coverage is 80.34%

Merging #361 into master will increase coverage by +0.05% as of 586dbdf

@@            master    #361   diff @@
======================================
  Files          211     211       
  Stmts         7182    7169    -13
  Branches         0       0       
  Methods          0       0       
======================================
- Hit           5767    5760     -7
  Partial          0       0       
+ Missed        1415    1409     -6

Review entire Coverage Diff as of 586dbdf

Powered by Codecov. Updated on successful CI builds.

std::string asString(const std::list<std::string> &lstr, const std::string &separator = "\n");
template <class Sequence>
std::string asString(const Sequence &lstr, const std::string &separator = "\n")
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static_assert(std::equal<lstr::element_type, std::string>::value, "Provided output containor container can not contain string.")

It was only explicitly implemented for std::list. Making it template over any
string sequence (that have a begin() and an end() methods) allows removing some
hand-coded loop in RequestMessage.cpp.

Signed-off-by: David Wagner <david.wagner@intel.com>
@dawagner dawagner force-pushed the dead-code-and-factorization branch from beccb14 to ea46088 Compare March 17, 2016 17:54
Having a function return a const value (i.e. not a reference nor a pointer) was
already rarely useful in C++03 but is now rather suspicious in C++11.

Signed-off-by: David Wagner <david.wagner@intel.com>
@dawagner dawagner force-pushed the dead-code-and-factorization branch from ea46088 to e454bf2 Compare March 18, 2016 08:45
std::string asString(const std::list<std::string> &lstr, const std::string &separator = "\n");
template <class Sequence>
std::string asString(const Sequence &lstr, const std::string &separator = "\n")
{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

dawagner added a commit that referenced this pull request Mar 18, 2016
Dead code removal and some factorization
@dawagner dawagner merged commit e65c400 into intel:master Mar 18, 2016
@dawagner dawagner deleted the dead-code-and-factorization branch March 18, 2016 09:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants