Remove unused createEventFlag function am: 1390abc07c

Original change: https://android-review.googlesource.com/c/platform/system/libfmq/+/1792489

Change-Id: If89b1052b6fc424d4fc60e8f71f7e2f30fd1f4eb
diff --git a/EventFlag.cpp b/EventFlag.cpp
index 96f9519..c51450a 100644
--- a/EventFlag.cpp
+++ b/EventFlag.cpp
@@ -32,26 +32,6 @@
 namespace android {
 namespace hardware {
 
-status_t EventFlag::createEventFlag(int fd, off_t offset, EventFlag** flag) {
-    if (flag == nullptr) {
-        return BAD_VALUE;
-    }
-
-    status_t status = NO_MEMORY;
-    *flag = nullptr;
-
-    EventFlag* evFlag = new (std::nothrow) EventFlag(fd, offset, &status);
-    if (evFlag != nullptr) {
-        if (status == NO_ERROR) {
-            *flag = evFlag;
-        } else {
-            delete evFlag;
-        }
-    }
-
-    return status;
-}
-
 status_t EventFlag::createEventFlag(std::atomic<uint32_t>* fwAddr,
                                     EventFlag** flag) {
     if (flag == nullptr) {
diff --git a/include/fmq/EventFlag.h b/include/fmq/EventFlag.h
index af18448..d5bc014 100644
--- a/include/fmq/EventFlag.h
+++ b/include/fmq/EventFlag.h
@@ -31,22 +31,6 @@
  */
 struct EventFlag {
     /**
-     * Create an event flag object with mapping information.
-     *
-     * @param fd File descriptor to be mmapped to create the event flag word.
-     * There is no transfer of ownership of the fd. The caller will still
-     * own the fd for the purpose of closing it.
-     * @param offset Offset parameter to mmap.
-     * @param ef Pointer to address of the EventFlag object that gets created. Will be set to
-     * nullptr if unsuccesful.
-     *
-     * @return status Returns a status_t error code. Likely error codes are
-     * NO_ERROR if the method is successful or BAD_VALUE due to invalid
-     * mapping arguments.
-     */
-    static status_t createEventFlag(int fd, off_t offset, EventFlag** ef);
-
-    /**
      * Create an event flag object from the address of the flag word.
      *
      * @param  efWordPtr Pointer to the event flag word.