Skip to content

Commit

Permalink
Revert "common: add int64_t template for strict_si_cast()"
Browse files Browse the repository at this point in the history
This reverts commit e3a99c0.
  • Loading branch information
ldachary committed Aug 25, 2016
1 parent 94eb163 commit 518883d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
2 changes: 0 additions & 2 deletions src/common/strtol.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ template int strict_si_cast<int>(const char *str, std::string *err);

template long long strict_si_cast<long long>(const char *str, std::string *err);

template int64_t strict_si_cast<int64_t>(const char *str, std::string *err);

template uint64_t strict_si_cast<uint64_t>(const char *str, std::string *err);

uint64_t strict_sistrtoll(const char *str, std::string *err)
Expand Down
15 changes: 0 additions & 15 deletions src/test/strtol.cc
Original file line number Diff line number Diff line change
Expand Up @@ -234,21 +234,6 @@ TEST(StrictSICast, Error) {
(void)strict_si_cast<int>("1T", &err);
ASSERT_NE(err, "");
}
{
std::string err;
(void)strict_si_cast<int64_t>("2E", &err);
ASSERT_EQ(err, "");
}
{
std::string err;
(void)strict_si_cast<int64_t>("-2E", &err);
ASSERT_EQ(err, "");
}
{
std::string err;
(void)strict_si_cast<int64_t>("1T", &err);
ASSERT_EQ(err, "");
}
}

/*
Expand Down

0 comments on commit 518883d

Please sign in to comment.