[gnote] Remove some leftover code
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove some leftover code
- Date: Sat, 12 Dec 2015 18:30:57 +0000 (UTC)
commit b9b3e0a3b9ee90e93a8a6a1f613536d637f40d4a
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Dec 12 20:14:58 2015 +0200
Remove some leftover code
src/recentchanges.cpp | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index d5c1cec..f4150ab 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -551,16 +551,7 @@ namespace gnote {
m_embed_box.remove(wid);
m_current_embedded_name_slot.disconnect();
- try {
- HasActions &has_actions = dynamic_cast<HasActions&>(widget);
- FOREACH(MainWindowAction::Ptr action, has_actions.get_widget_actions()) {
- if(action != 0) {
- remove_action(action->get_name());
- }
- }
- }
- catch(std::bad_cast&) {
- }
+
if(m_window_menu_embedded) {
gtk_widget_destroy(GTK_WIDGET(m_window_menu_embedded));
m_window_menu_embedded = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]