Skip to content

Commit

Permalink
Remove useless ";;".
Browse files Browse the repository at this point in the history
  • Loading branch information
estraier committed Oct 26, 2024
1 parent c884c8d commit 160e5cb
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions tkrzw_cmd_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ std::unique_ptr<File> MakeFileOrDie(
void SetAccessStrategyOrDie(File* file, int64_t block_size,
bool is_direct_io, bool is_sync_io, bool is_padding,
bool is_pagecache) {
auto* pos_file = dynamic_cast<PositionalFile*>(file);;
auto* pos_file = dynamic_cast<PositionalFile*>(file);
if (pos_file != nullptr) {
int32_t options = PositionalFile::ACCESS_DEFAULT;
if (is_direct_io) {
Expand All @@ -180,7 +180,7 @@ void SetAccessStrategyOrDie(File* file, int64_t block_size,
}

void SetHeadBufferOfFileOrDie(File* file, int64_t size) {
auto* pos_file = dynamic_cast<PositionalFile*>(file);;
auto* pos_file = dynamic_cast<PositionalFile*>(file);
if (pos_file != nullptr) {
pos_file->SetHeadBuffer(size).OrDie();
}
Expand Down
2 changes: 1 addition & 1 deletion tkrzw_dbm_hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ Status HashDBMImpl::CheckFileBeforeOpen(File* file, const std::string& path, boo
return Status(Status::INFEASIBLE_ERROR, "The file size not aligned to the block size");
}
}
return Status(Status::SUCCESS);;
return Status(Status::SUCCESS);
}

Status HashDBMImpl::TuneFileAfterOpen() {
Expand Down
2 changes: 1 addition & 1 deletion tkrzw_dbm_skip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ Status SkipDBMImpl::CheckFileBeforeOpen(File* file, const std::string& path, boo
return Status(Status::INFEASIBLE_ERROR, "The file size not aligned to the block size");
}
}
return Status(Status::SUCCESS);;
return Status(Status::SUCCESS);
}

Status SkipDBMImpl::CheckZeroRegion(int64_t offset, int64_t end_offset) {
Expand Down
2 changes: 1 addition & 1 deletion tkrzw_dbm_tiny.cc
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ Status TinyDBMImpl::ExportRecords() {
status |= file_->Close();
status |= RenameFile(export_path, path_);
RemoveFile(export_path);
status |= file_->Open(path_, true, open_options_ & ~File::OPEN_TRUNCATE);;
status |= file_->Open(path_, true, open_options_ & ~File::OPEN_TRUNCATE);
return status;
}

Expand Down
8 changes: 4 additions & 4 deletions tkrzw_langc_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int32_t process(const char* path, const char* params, int32_t num_iters) {
printf("Setting records: path=%s params=%s num_iterations=%d\n",
path, params, num_iters);
const double start_time = tkrzw_get_wall_time();
bool midline = false;;
bool midline = false;
for (int32_t i = 0; !has_error && i < num_iters; i++) {
const size_t buf_size = sprintf(buf, "%08d", i);
if (!tkrzw_dbm_set(dbm, buf, buf_size, buf, buf_size, true)) {
Expand Down Expand Up @@ -93,7 +93,7 @@ int32_t process(const char* path, const char* params, int32_t num_iters) {
printf("Getting records: path=%s params=%s num_iterations=%d\n",
path, params, num_iters);
const double start_time = tkrzw_get_wall_time();
bool midline = false;;
bool midline = false;
for (int32_t i = 0; !has_error && i < num_iters; i++) {
const size_t key_size = sprintf(key_buf, "%08d", i);
int32_t value_size = 0;
Expand Down Expand Up @@ -126,7 +126,7 @@ int32_t process(const char* path, const char* params, int32_t num_iters) {
printf("Iterating records: path=%s params=%s num_iterations=%d\n",
path, params, num_iters);
const double start_time = tkrzw_get_wall_time();
bool midline = false;;
bool midline = false;
TkrzwDBMIter* iter = tkrzw_dbm_make_iterator(dbm);
if (!tkrzw_dbm_iter_first(iter)) {
print_error("iter_first");
Expand Down Expand Up @@ -174,7 +174,7 @@ int32_t process(const char* path, const char* params, int32_t num_iters) {
printf("Removing records: path=%s params=%s num_iterations=%d\n",
path, params, num_iters);
const double start_time = tkrzw_get_wall_time();
bool midline = false;;
bool midline = false;
for (int32_t i = 0; !has_error && i < num_iters; i++) {
const size_t buf_size = sprintf(buf, "%08d", i);
if (!tkrzw_dbm_remove(dbm, buf, buf_size)) {
Expand Down
8 changes: 4 additions & 4 deletions tkrzw_lib_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ namespace tkrzw {
#if defined(_SYS_WINDOWS_)

const int32_t PAGE_SIZE = 4096;
const char* const PACKAGE_VERSION = _TKRZW_PKG_VERSION;;
const char* const LIBRARY_VERSION = _TKRZW_LIB_VERSION;;
const char* const PACKAGE_VERSION = _TKRZW_PKG_VERSION;
const char* const LIBRARY_VERSION = _TKRZW_LIB_VERSION;
const char* const OS_NAME = _TKRZW_OSNAME;
const bool IS_POSIX = _IS_POSIX;
const bool IS_BIG_ENDIAN = _IS_BIG_ENDIAN;
Expand All @@ -31,8 +31,8 @@ constexpr int32_t EDQUOT = 10001;
#else

const int32_t PAGE_SIZE = sysconf(_SC_PAGESIZE);
const char* const PACKAGE_VERSION = _TKRZW_PKG_VERSION;;
const char* const LIBRARY_VERSION = _TKRZW_LIB_VERSION;;
const char* const PACKAGE_VERSION = _TKRZW_PKG_VERSION;
const char* const LIBRARY_VERSION = _TKRZW_LIB_VERSION;
const char* const OS_NAME = _TKRZW_OSNAME;
const bool IS_POSIX = _IS_POSIX;
const bool IS_BIG_ENDIAN = _IS_BIG_ENDIAN;
Expand Down
2 changes: 1 addition & 1 deletion tkrzw_lib_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ constexpr double DOUBLEMAX = std::numeric_limits<double>::max();
constexpr double DOUBLENAN = std::numeric_limits<double>::quiet_NaN();

/** The positive infinity value of double. */
constexpr double DOUBLEINF = std::numeric_limits<double>::infinity();;
constexpr double DOUBLEINF = std::numeric_limits<double>::infinity();

/** The buffer size for a numeric string expression. */
constexpr int32_t NUM_BUFFER_SIZE = 32;
Expand Down
2 changes: 1 addition & 1 deletion tkrzw_message_queue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ Status MessageQueue::RemoveOldFiles(
int64_t file_id = 0;
int64_t timestamp = 0;
int64_t file_size = 0;
status = ReadFileMetadata(path, &file_id, &timestamp, &file_size);;
status = ReadFileMetadata(path, &file_id, &timestamp, &file_size);
if (status != Status::SUCCESS) {
return status;
}
Expand Down
2 changes: 1 addition & 1 deletion tkrzw_str_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1698,7 +1698,7 @@ std::string StrDecodeBase64(std::string_view str) {
case 0: {
decoded.push_back((bits >> 16) & 0xff);
decoded.push_back((bits >> 8) & 0xff);
decoded.push_back(bits & 0xff);;
decoded.push_back(bits & 0xff);
break;
}
case 1: {
Expand Down
2 changes: 1 addition & 1 deletion tkrzw_sys_util_windows.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ inline Status TruncateFileInternally(HANDLE file_handle, int64_t length) {
* @return The result status.
*/
inline Status TruncateFileExternally(const std::string& path, int64_t length) {
const DWORD amode = GENERIC_WRITE;;
const DWORD amode = GENERIC_WRITE;
const DWORD smode = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE;
const DWORD cmode = OPEN_EXISTING;
const DWORD flags = FILE_FLAG_RANDOM_ACCESS;
Expand Down

0 comments on commit 160e5cb

Please sign in to comment.