Skip to content

Commit 13eb6a8

Browse files
committed
AssayHeaderView: remove getDeleteOnClick (unused)
1 parent 2ca5ebf commit 13eb6a8

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

api/src/org/labkey/api/assay/actions/AssayHeaderView.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,6 @@ public List<NavTree> getLinks()
9494
return links;
9595
}
9696

97-
public static String getDeleteOnClick(ExpProtocol protocol, Container currentContainer)
98-
{
99-
ActionURL deleteURL = PageFlowUtil.urlProvider(AssayUrls.class).getDeleteDesignURL(protocol);
100-
String extraWarning = "";
101-
if (!protocol.getContainer().equals(currentContainer))
102-
{
103-
extraWarning = " It is defined in " + protocol.getContainer().getPath() + " and deleting it will remove it from all subfolders.";
104-
}
105-
return "if (window.confirm('Are you sure you want to delete this assay design and all of its runs?" + extraWarning + "')) { window.location = '" + deleteURL + "' }";
106-
}
107-
10897
public ExpProtocol getProtocol()
10998
{
11099
return _protocol;

0 commit comments

Comments
 (0)