Remove unused old core binary
Change-Id: I308810d416360d4a37de596fccd358be1c259e30
diff --git a/aos/BUILD b/aos/BUILD
index 294b218..da103d4 100644
--- a/aos/BUILD
+++ b/aos/BUILD
@@ -328,17 +328,6 @@
],
)
-cc_binary(
- name = "core",
- srcs = [
- "core.cc",
- ],
- deps = [
- ":init",
- "//aos/util:run_command",
- ],
-)
-
cc_library(
name = "make_unique",
hdrs = [
diff --git a/aos/core.cc b/aos/core.cc
deleted file mode 100644
index 3af3270..0000000
--- a/aos/core.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-#include <sys/wait.h>
-#include <sys/select.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <sys/types.h>
-
-#include <string>
-
-#include "aos/init.h"
-#include "aos/util/run_command.h"
-
-// Initializes shared memory. This is the only file that will create the shared
-// memory file if it doesn't already exist (and set everything up).
-//
-// Will also touch the file given as a first argument.
-
-int main(int argc, char **argv) {
- aos::InitCreate();
-
- if (argc > 1) {
- const int result = ::aos::util::RunCommand(
- (std::string("touch '") + argv[1] + "'").c_str());
- if (result == -1 || !WIFEXITED(result) || WEXITSTATUS(result) != 0) {
- fprintf(stderr, "`touch '%s'` failed; result = %x\n", argv[1], result);
- exit(EXIT_FAILURE);
- }
- }
-
- select(0, NULL, NULL, NULL, NULL); // wait forever
- aos::Cleanup();
-}