Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
axelvonkamp committed Jun 24, 2024
1 parent bab7c2f commit a3af0c6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
10 changes: 0 additions & 10 deletions cnapy/data/escher_cnapy.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,6 @@
builder = escher.Builder(null, null, null, escher.libs.d3_select('#map_container'),
{menu: 'all', fill_screen: true, never_ask_before_quit: true, tooltip_component: CnapyTooltip, scroll_behavior: 'zoom'})

/* function reactionOnMap(reacId, mapName) {
var records = builder.map.search_index.find(reacId);
for (i=0; i<records.length; i++) {
var record = records[i];
if (record.type == "reaction" && builder.map.reactions[record.reaction_id].bigg_id == reacId)
return mapName;
}
return "";
}
*/
function addMapToJumpListIfReactionPresent(reacId, mapName) {
var records = builder.map.search_index.find(reacId);
for (i=0; i<records.length; i++) {
Expand Down
7 changes: 0 additions & 7 deletions cnapy/gui_elements/reactions_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,13 +444,6 @@ def context_menu(self, position):
minimize_action.triggered.connect(self.minimize_reaction)
set_scen_value_action = menu.addAction("add computed value to scenario")
set_scen_value_action.triggered.connect(self.set_scen_value_action)
# if isinstance(self.central_widget.map_tabs.currentWidget(), EscherMapView):
# delete_reaction_action = menu.addAction("delete from current map")
# delete_reaction_action.setVisible(False)
# delete_reaction_action.triggered.connect(self.delete_reaction_action)
# self.central_widget.map_tabs.currentWidget().page().runJavaScript(
# "reactionOnMap('"+item.reaction.id.replace("'", r"\'")+"','X')",
# lambda map_name: delete_reaction_action.setVisible(True) if len(map_name) > 0 else None)
menu.exec_(self.reaction_list.mapToGlobal(position))

@Slot(bool)
Expand Down

0 comments on commit a3af0c6

Please sign in to comment.