Remove unused Cleanup() call
It was used to clean up shared memory. We don't construct that anymore,
so remove the useless call.
Change-Id: I8087cef2afce184f66721a9995a63053fb278ec7
diff --git a/aos/BUILD b/aos/BUILD
index da103d4..2bb1d50 100644
--- a/aos/BUILD
+++ b/aos/BUILD
@@ -260,7 +260,6 @@
deps = [
":realtime",
"//aos:die",
- "//aos/ipc_lib:shared_mem",
"//aos/logging:implementations",
],
)
diff --git a/aos/aos_dump.cc b/aos/aos_dump.cc
index fe6cbd5..62fb5cb 100644
--- a/aos/aos_dump.cc
+++ b/aos/aos_dump.cc
@@ -115,6 +115,6 @@
}
event_loop.Run();
- ::aos::Cleanup();
+
return 0;
}
diff --git a/aos/events/logging/log_cat.cc b/aos/events/logging/log_cat.cc
index d3095cb..f4ef578 100644
--- a/aos/events/logging/log_cat.cc
+++ b/aos/events/logging/log_cat.cc
@@ -225,6 +225,5 @@
event_loop_factory.Run();
- aos::Cleanup();
return 0;
}
diff --git a/aos/events/logging/log_edit.cc b/aos/events/logging/log_edit.cc
index 0dca904..4078f9b 100644
--- a/aos/events/logging/log_edit.cc
+++ b/aos/events/logging/log_edit.cc
@@ -57,6 +57,5 @@
}
}
- aos::Cleanup();
return 0;
}
diff --git a/aos/events/logging/log_stats.cc b/aos/events/logging/log_stats.cc
index 8243d9f..eac8d08 100644
--- a/aos/events/logging/log_stats.cc
+++ b/aos/events/logging/log_stats.cc
@@ -183,6 +183,6 @@
// Cleanup the created processes
reader.Deregister();
- aos::Cleanup();
+
return 0;
}
diff --git a/aos/events/logging/logger_main.cc b/aos/events/logging/logger_main.cc
index 577556e..2575e85 100644
--- a/aos/events/logging/logger_main.cc
+++ b/aos/events/logging/logger_main.cc
@@ -41,6 +41,5 @@
event_loop.Run();
- aos::Cleanup();
return 0;
}
diff --git a/aos/events/ping.cc b/aos/events/ping.cc
index f829b41..a759a8f 100644
--- a/aos/events/ping.cc
+++ b/aos/events/ping.cc
@@ -20,6 +20,5 @@
event_loop.Run();
- aos::Cleanup();
return 0;
}
diff --git a/aos/events/pong.cc b/aos/events/pong.cc
index 581d04f..f9f35c2 100644
--- a/aos/events/pong.cc
+++ b/aos/events/pong.cc
@@ -22,6 +22,5 @@
event_loop.Run();
- ::aos::Cleanup();
return 0;
}
diff --git a/aos/init.cc b/aos/init.cc
index c40f22c..163f5dd 100644
--- a/aos/init.cc
+++ b/aos/init.cc
@@ -14,7 +14,6 @@
#include <malloc.h>
#include "aos/die.h"
-#include "aos/ipc_lib/shared_mem.h"
#include "aos/logging/implementations.h"
#include "aos/realtime.h"
@@ -98,10 +97,6 @@
AOS_LOG(INFO, "%s initialized realtime\n", program_invocation_short_name);
}
-void Cleanup() {
- aos_core_free_shared_mem();
-}
-
void PinCurrentThreadToCPU(int number) {
cpu_set_t cpuset;
CPU_ZERO(&cpuset);
diff --git a/aos/init.h b/aos/init.h
index 3ff56b8..98bc266 100644
--- a/aos/init.h
+++ b/aos/init.h
@@ -23,9 +23,6 @@
// Same as InitNRT, except will remove an existing shared memory file and create
// a new one.
void InitCreate();
-// Cleans up (probably not going to get called very often because few things can
-// exit gracefully).
-void Cleanup();
// Performs the realtime parts of initialization after InitNRT() has been called.
void GoRT(int relative_priority = 0);