@@ -120,7 +120,7 @@ public static void InitializePlugins(IPublicAPI api)
120120 catch ( Exception e )
121121 {
122122 Log . Exception ( nameof ( PluginManager ) , $ "Fail to Init plugin: { pair . Metadata . Name } ", e ) ;
123- pair . Metadata . Disabled = true ; // TODO: not sure this really disable it later on
123+ pair . Metadata . Disabled = true ;
124124 failedPlugins . Enqueue ( pair ) ;
125125 }
126126 } ) ;
@@ -149,35 +149,6 @@ public static void InstallPlugin(string path)
149149 PluginInstaller . Install ( path ) ;
150150 }
151151
152- public static Query QueryInit ( string text ) //todo is that possible to move it into type Query?
153- {
154- // replace multiple white spaces with one white space
155- var terms = text . Split ( new [ ] { Query . TermSeperater } , StringSplitOptions . RemoveEmptyEntries ) ;
156- var rawQuery = string . Join ( Query . TermSeperater , terms ) ;
157- var actionKeyword = string . Empty ;
158- var search = rawQuery ;
159- var actionParameters = terms . ToList ( ) ;
160- if ( terms . Length == 0 ) return null ;
161- if ( NonGlobalPlugins . ContainsKey ( terms [ 0 ] ) &&
162- ! Settings . Plugins [ NonGlobalPlugins [ terms [ 0 ] ] . Metadata . ID ] . Disabled )
163- {
164- actionKeyword = terms [ 0 ] ;
165- actionParameters = terms . Skip ( 1 ) . ToList ( ) ;
166- search = string . Join ( Query . TermSeperater , actionParameters . ToArray ( ) ) ;
167- }
168- var query = new Query
169- {
170- Terms = terms ,
171- RawQuery = rawQuery ,
172- ActionKeyword = actionKeyword ,
173- Search = search ,
174- // Obsolete value initialisation
175- ActionName = actionKeyword ,
176- ActionParameters = actionParameters
177- } ;
178- return query ;
179- }
180-
181152 public static List < PluginPair > ValidPluginsForQuery ( Query query )
182153 {
183154 if ( NonGlobalPlugins . ContainsKey ( query . ActionKeyword ) )
0 commit comments