Skip to content

Commit

Permalink
Remove MmapSyncInterface.
Browse files Browse the repository at this point in the history
Since Pepper is no longer supported, this interface can be removed.

PiperOrigin-RevId: 406036931
  • Loading branch information
Noriyuki Takahashi authored and hiroyuki-komatsu committed Oct 30, 2021
1 parent 33545b4 commit 5e7fdb7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 60 deletions.
7 changes: 0 additions & 7 deletions src/base/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -644,19 +644,12 @@ cc_test_mozc(
],
)

cc_library_mozc(
name = "mmap_sync_interface",
hdrs = ["mmap_sync_interface.h"],
visibility = ["//visibility:private"],
)

cc_library_mozc(
name = "mmap",
srcs = ["mmap.cc"],
hdrs = ["mmap.h"],
deps = [
":logging",
":mmap_sync_interface",
":port",
":scoped_handle",
":util",
Expand Down
16 changes: 7 additions & 9 deletions src/base/mmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@
#ifndef MOZC_BASE_MMAP_H_
#define MOZC_BASE_MMAP_H_

#include <string>

#include "base/mmap_sync_interface.h"
#include "base/port.h"

#include <cstddef>

namespace mozc {

class Mmap : public MmapSyncInterface {
class Mmap final {
public:
Mmap();
~Mmap() override { Close(); }

Mmap(const Mmap &) = delete;
Mmap &operator=(const Mmap &) = delete;

~Mmap() { Close(); }

bool Open(const char *filename, const char *mode = "r");
void Close();
Expand Down Expand Up @@ -73,8 +73,6 @@ class Mmap : public MmapSyncInterface {
private:
char *text_;
size_t size_;

DISALLOW_COPY_AND_ASSIGN(Mmap);
};

} // namespace mozc
Expand Down
44 changes: 0 additions & 44 deletions src/base/mmap_sync_interface.h

This file was deleted.

0 comments on commit 5e7fdb7

Please sign in to comment.