Small cleanups [skip ci]

This commit is contained in:
Robin 2016-04-17 23:32:22 +02:00
commit 98e6be5eb6
171 changed files with 1607 additions and 1769 deletions

View file

@ -18,12 +18,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using GreenshotPlugin.Core;
using System.Drawing;
using System.Windows.Forms;
namespace Greenshot.Plugin {
/// <summary>

View file

@ -20,7 +20,6 @@
*/
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Windows.Forms;
using Greenshot.Plugin.Drawing;

View file

@ -25,14 +25,14 @@ using System.Windows.Forms;
namespace Greenshot.Plugin {
public class ExportInformation {
private string uri = null;
private string filepath = null;
private string uri;
private string filepath;
private bool exportMade = false;
private string destinationDesignation = null;
private string destinationDescription = null;
private bool exportMade;
private readonly string destinationDesignation;
private string destinationDescription;
private string errorMessage = null;
private string errorMessage;
public ExportInformation(string destinationDesignation, string destinationDescription) {
this.destinationDesignation = destinationDesignation;

View file

@ -19,9 +19,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace Greenshot.Plugin {
/// <summary>

View file

@ -21,7 +21,6 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using GreenshotPlugin.Core;
@ -76,10 +75,10 @@ namespace Greenshot.Plugin {
public delegate void HotKeyHandler();
public class SurfaceOutputSettings {
private static CoreConfiguration conf = IniConfig.GetIniSection<CoreConfiguration>();
private static readonly CoreConfiguration conf = IniConfig.GetIniSection<CoreConfiguration>();
private bool reduceColors;
private bool disableReduceColors;
private List<IEffect> effects = new List<IEffect>();
private readonly List<IEffect> effects = new List<IEffect>();
public SurfaceOutputSettings() {
disableReduceColors = false;