@@ -65,7 +65,7 @@ internal static NConsoleOption CreateConfigOption(PropertyInfo member, string na
6565 {
6666 bool initVal = ( bool ) member . GetValue ( Program . Config ) ;
6767
68- return new NConsoleOption ( )
68+ return new NConsoleOption
6969 {
7070 Name = AppInterface . Elements . GetName ( name , initVal ) ,
7171 Function = ( ) =>
@@ -91,7 +91,7 @@ internal static NConsoleOption CreateConfigOption(string m, string name, int i)
9191 {
9292 bool initVal = ( bool ) ( Program . Config ) . GetType ( ) . GetAnyResolvedField ( m ) . GetValue ( Program . Config ) ;
9393
94- return new NConsoleOption ( )
94+ return new NConsoleOption
9595 {
9696 Name = AppInterface . Elements . GetName ( name , initVal ) ,
9797 Function = ( ) =>
@@ -118,9 +118,7 @@ internal static NConsoleOption CreateResultOption(SearchResult result)
118118
119119 var option = new NConsoleOption
120120 {
121-
122-
123- Functions = new Dictionary < ConsoleModifiers , NConsoleFunction > ( )
121+ Functions = new Dictionary < ConsoleModifiers , NConsoleFunction >
124122 {
125123 [ NC_FN_MAIN ] = CreateOpenFunction ( result . PrimaryResult is { Url : { } }
126124 ? result . PrimaryResult . Url
@@ -243,27 +241,5 @@ internal static NConsoleFunction CreateOpenFunction(Uri url)
243241 return null ;
244242 } ;
245243 }
246-
247- internal static NConsoleFunction CreateDownloadFunction ( ImageResult result )
248- {
249- return ( ) =>
250- {
251- Trace . WriteLine ( $ "Downloading") ;
252- var direct = result . Direct ;
253-
254-
255- if ( direct != null ) {
256- var path = Environment . GetFolderPath ( Environment . SpecialFolder . Desktop ) ;
257-
258- var file = ImageHelper . Download ( direct , path ) ;
259-
260- FileSystem . ExploreFile ( file ) ;
261-
262- Debug . WriteLine ( $ "Download: { file } ", LogCategories . C_INFO ) ;
263- }
264-
265- return null ;
266- } ;
267- }
268244 }
269245}
0 commit comments