@@ -157,42 +157,6 @@ public override TypePrinterResult VisitBuiltinType(BuiltinType builtin, TypeQual
157157 return base . VisitBuiltinType ( builtin , quals ) ;
158158 }
159159
160- public override TypePrinterResult VisitFunctionType ( FunctionType function ,
161- TypeQualifiers quals )
162- {
163- var arguments = function . Parameters ;
164- var returnType = function . ReturnType ;
165- var args = string . Empty ;
166-
167- PushMarshalKind ( MarshalKind . GenericDelegate ) ;
168-
169- if ( arguments . Count > 0 )
170- args = VisitParameters ( function . Parameters , hasNames : false ) . Type ;
171-
172- PopMarshalKind ( ) ;
173-
174- if ( ContextKind != TypePrinterContextKind . Managed )
175- return IntPtrType ;
176-
177- if ( returnType . Type . IsPrimitiveType ( PrimitiveType . Void ) )
178- {
179- if ( ! string . IsNullOrEmpty ( args ) )
180- args = string . Format ( "<{0}>" , args ) ;
181- return string . Format ( "Action{0}" , args ) ;
182- }
183-
184- if ( ! string . IsNullOrEmpty ( args ) )
185- args = string . Format ( ", {0}" , args ) ;
186-
187- PushMarshalKind ( MarshalKind . GenericDelegate ) ;
188-
189- var returnTypePrinterResult = returnType . Visit ( this ) ;
190-
191- PopMarshalKind ( ) ;
192-
193- return string . Format ( "Func<{0}{1}>" , returnTypePrinterResult , args ) ;
194- }
195-
196160 private bool allowStrings = true ;
197161
198162 public override TypePrinterResult VisitPointerType ( PointerType pointer ,
0 commit comments