Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kpu/kenlm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2020-02-21 01:15:07 +0300
committerKenneth Heafield <github@kheafield.com>2020-02-21 01:15:07 +0300
commitc707fb0ecf7c3d92dabbbb9e191eb31bbc896648 (patch)
tree372542684a77c7ca2243ebb7bea30f3997fe0e0f /util
parent36699c8252fc19d97fdaba56592df9f3aef91981 (diff)
Remove dead code
Diffstat (limited to 'util')
-rw-r--r--util/mmap.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/util/mmap.cc b/util/mmap.cc
index 593eb5f..77e8d27 100644
--- a/util/mmap.cc
+++ b/util/mmap.cc
@@ -79,18 +79,6 @@ void scoped_memory::reset(void *data, std::size_t size, Alloc source) {
source_ = source;
}
-/*void scoped_memory::call_realloc(std::size_t size) {
- assert(source_ == MALLOC_ALLOCATED || source_ == NONE_ALLOCATED);
- void *new_data = realloc(data_, size);
- if (!new_data) {
- reset();
- } else {
- data_ = new_data;
- size_ = size;
- source_ = MALLOC_ALLOCATED;
- }
-}*/
-
const int kFileFlags =
#if defined(_WIN32) || defined(_WIN64)
0 // MapOrThrow ignores flags on windows