Skip to content

Commit 93b449c

Browse files
committed
Remove deprecated code [ci fast]
Signed-off-by: Paolo Di Tommaso <[email protected]>
1 parent 3d0f927 commit 93b449c

File tree

1 file changed

+0
-4
lines changed
  • modules/nextflow/src/main/groovy/nextflow/extension

1 file changed

+0
-4
lines changed

modules/nextflow/src/main/groovy/nextflow/extension/CH.groovy

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ class CH {
127127
}
128128

129129
static DataflowBroadcast topic(String name) {
130-
if( !NF.isDsl2() )
131-
throw new IllegalStateException("Channel 'topic' is only available with DSL2")
132130
synchronized (allTopics) {
133131
def topic = allTopics.find(it -> it.name == name)
134132
if( topic!=null )
@@ -141,8 +139,6 @@ class CH {
141139
}
142140

143141
static DataflowWriteChannel topicWriter(String name) {
144-
if( !NF.isDsl2() )
145-
throw new IllegalStateException("Channel 'topic' is only available with DSL2")
146142
synchronized (allTopics) {
147143
def topic = allTopics.find(it -> it.name == name)
148144
if( topic==null ) {

0 commit comments

Comments
 (0)