chromium/third_party/leveldatabase/src/util/env.cc

// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#include "leveldb/env.h"

#include <cstdarg>

// This workaround can be removed when leveldb::Env::DeleteFile is removed.
// See env.h for justification.
#if defined(_WIN32) && defined(LEVELDB_DELETEFILE_UNDEFINED)
#undef DeleteFile
#endif

namespace leveldb {

Env::Env() = default;

Env::~Env() = default;

Status Env::NewAppendableFile(const std::string& fname, WritableFile** result) {}

Status Env::RemoveDir(const std::string& dirname) {}
Status Env::DeleteDir(const std::string& dirname) {}

Status Env::RemoveFile(const std::string& fname) {}
Status Env::DeleteFile(const std::string& fname) {}

SequentialFile::~SequentialFile() = default;

RandomAccessFile::~RandomAccessFile() = default;

WritableFile::~WritableFile() = default;

Logger::~Logger() = default;

FileLock::~FileLock() = default;

void Log(Logger* info_log, const char* format, ...) {}

static Status DoWriteStringToFile(Env* env, const Slice& data,
                                  const std::string& fname, bool should_sync) {}

Status WriteStringToFile(Env* env, const Slice& data,
                         const std::string& fname) {}

Status WriteStringToFileSync(Env* env, const Slice& data,
                             const std::string& fname) {}

Status ReadFileToString(Env* env, const std::string& fname, std::string* data) {}

EnvWrapper::~EnvWrapper() {}

}  // namespace leveldb