Remove unused EventFlag constructor am: 6a548ad593
Original change: https://android-review.googlesource.com/c/platform/system/libfmq/+/1792490
Change-Id: I44fdcee1fad638961bac658e8315c98872cec557
diff --git a/EventFlag.cpp b/EventFlag.cpp
index c51450a..d353873 100644
--- a/EventFlag.cpp
+++ b/EventFlag.cpp
@@ -54,23 +54,6 @@
}
/*
- * mmap memory for the futex word
- */
-EventFlag::EventFlag(int fd, off_t offset, status_t* status) {
- mEfWordPtr = static_cast<std::atomic<uint32_t>*>(mmap(NULL,
- sizeof(std::atomic<uint32_t>),
- PROT_READ | PROT_WRITE,
- MAP_SHARED, fd, offset));
- mEfWordNeedsUnmapping = true;
- if (mEfWordPtr != MAP_FAILED) {
- *status = NO_ERROR;
- } else {
- *status = -errno;
- ALOGE("Attempt to mmap event flag word failed: %s\n", strerror(errno));
- }
-}
-
-/*
* Use this constructor if we already know where the futex word for
* the EventFlag group lives.
*/
diff --git a/include/fmq/EventFlag.h b/include/fmq/EventFlag.h
index d5bc014..3ec4932 100644
--- a/include/fmq/EventFlag.h
+++ b/include/fmq/EventFlag.h
@@ -95,11 +95,6 @@
std::atomic<uint32_t>* mEfWordPtr = nullptr;
/*
- * mmap memory for the event flag word.
- */
- EventFlag(int fd, off_t offset, status_t* status);
-
- /*
* Use this constructor if we already know where the event flag word
* lives.
*/