mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 19:49:15 +08:00
Remove all obsolete methods
This commit is contained in:
parent
929cc2727d
commit
ddf6154600
@ -15,75 +15,5 @@ namespace Wox.Plugin
|
|||||||
public IPublicAPI API { get; set; }
|
public IPublicAPI API { get; set; }
|
||||||
|
|
||||||
public IHttpProxy Proxy { get; set; }
|
public IHttpProxy Proxy { get; set; }
|
||||||
|
|
||||||
#region Legacy APIs
|
|
||||||
|
|
||||||
[Obsolete("This method has been obsoleted, use API.ShellRun instead")]
|
|
||||||
public bool ShellRun(string cmd)
|
|
||||||
{
|
|
||||||
return API.ShellRun(cmd);
|
|
||||||
}
|
|
||||||
|
|
||||||
[Obsolete("This method has been obsoleted, use API.OpenSettingDialog instead")]
|
|
||||||
public void ChangeQuery(string query, bool requery = false)
|
|
||||||
{
|
|
||||||
API.ChangeQuery(query, requery);
|
|
||||||
}
|
|
||||||
|
|
||||||
[Obsolete("This method has been obsoleted, use API.CloseApp instead")]
|
|
||||||
public void CloseApp()
|
|
||||||
{
|
|
||||||
API.CloseApp();
|
|
||||||
}
|
|
||||||
|
|
||||||
[Obsolete("This method has been obsoleted, use API.HideApp instead")]
|
|
||||||
public void HideApp()
|
|
||||||
{
|
|
||||||
API.HideApp();
|
|
||||||
}
|
|
||||||
|
|
||||||
[Obsolete("This method has been obsoleted, use API.ShowApp instead")]
|
|
||||||
public void ShowApp()
|
|
||||||
{
|
|
||||||
API.ShowApp();
|
|
||||||
}
|
|
||||||
|
|
||||||
[Obsolete("This method has been obsoleted, use API.OpenSettingDialog instead")]
|
|
||||||
public void ShowMsg(string title, string subTitle, string iconPath)
|
|
||||||
{
|
|
||||||
API.ShowMsg(title, subTitle, iconPath);
|
|
||||||
}
|
|
||||||
|
|
||||||
[Obsolete("This method has been obsoleted, use API.OpenSettingDialog instead")]
|
|
||||||
public void OpenSettingDialog()
|
|
||||||
{
|
|
||||||
API.OpenSettingDialog();
|
|
||||||
}
|
|
||||||
|
|
||||||
[Obsolete("This method has been obsoleted, use API.StartLoadingBar instead")]
|
|
||||||
public void StartLoadingBar()
|
|
||||||
{
|
|
||||||
API.StartLoadingBar();
|
|
||||||
}
|
|
||||||
|
|
||||||
[Obsolete("This method has been obsoleted, use API.StopLoadingBar instead")]
|
|
||||||
public void StopLoadingBar()
|
|
||||||
{
|
|
||||||
API.StopLoadingBar();
|
|
||||||
}
|
|
||||||
|
|
||||||
[Obsolete("This method has been obsoleted, use API.InstallPlugin instead")]
|
|
||||||
public void InstallPlugin(string path)
|
|
||||||
{
|
|
||||||
API.InstallPlugin(path);
|
|
||||||
}
|
|
||||||
|
|
||||||
[Obsolete("This method has been obsoleted, use API.ReloadPlugins instead")]
|
|
||||||
public void ReloadPlugins()
|
|
||||||
{
|
|
||||||
API.ReloadPlugins();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,18 +9,6 @@ namespace Wox.Plugin
|
|||||||
{
|
{
|
||||||
public class PluginMetadata
|
public class PluginMetadata
|
||||||
{
|
{
|
||||||
private int configVersion = 1;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// if we need to change the plugin config in the futher, use this to
|
|
||||||
/// indicate config version
|
|
||||||
/// </summary>
|
|
||||||
[Obsolete]
|
|
||||||
public int ConfigVersion
|
|
||||||
{
|
|
||||||
get { return configVersion; }
|
|
||||||
set { configVersion = value; }
|
|
||||||
}
|
|
||||||
public string ID { get; set; }
|
public string ID { get; set; }
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public string Author { get; set; }
|
public string Author { get; set; }
|
||||||
@ -38,12 +26,6 @@ namespace Wox.Plugin
|
|||||||
public string ExecuteFileName { get; set; }
|
public string ExecuteFileName { get; set; }
|
||||||
public string PluginDirectory { get; set; }
|
public string PluginDirectory { get; set; }
|
||||||
|
|
||||||
[Obsolete("This property has been obsoleted, use PluginDirectory instead")]
|
|
||||||
public string PluginDirecotry
|
|
||||||
{
|
|
||||||
get { return PluginDirectory; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public string ActionKeyword { get; set; }
|
public string ActionKeyword { get; set; }
|
||||||
public PluginType PluginType { get; set; }
|
public PluginType PluginType { get; set; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user